tidalgo22
9/9/2017 - 2:29 AM

How to install socket.io with laravel 5.4.

How to install socket.io with laravel 5.4.

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