Created
September 9, 2017 02:29
-
-
Save tidalgo22/dfd523815f2bdf9b8990df7d796b16a8 to your computer and use it in GitHub Desktop.
How to install socket.io with laravel 5.4.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. follow the laravel broadcasting installation. locate the socket.io section. | |
ref: https://laravel.com/docs/5.4/broadcasting#driver-prerequisites | |
2. laravel does not include a Socket.IO server implementation. | |
luckily we have a community driven Socket.IO server is currently maintained at the tlaverdure/laravel-echo-server GitHub repository. | |
- we need to make sure that the requirements are there. | |
Laravel 5.3 | |
Node 5.0+ | |
Redis 3+ | |
- incase you an old node is installed follow this instruction https://gist.github.com/tidalgo22/d7ae7fa298247d6e98b349ffd4e3e591 | |
this helps you install latest node and npm in your server. | |
- redis also needs to be installed. https://www.hugeserver.com/kb/install-redis-debian-ubuntu/ | |
command: | |
$ sudo add-apt-repository ppa:chris-lea/redis-server | |
$ sudo apt-get update | |
$ sudo apt-get install redis-server | |
$sudo redis-server --version | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment