About using PHP socket.io do push messaging service

1, redis expand sure you have installed, you can use php -v view. If not installed expand refer to install redis extensions under Linux .

2, download documents  https://github.com/Lijianeng10/socket-

3, the specific use refer to the official documentation https://github.com/walkor/phpsocket.io/tree/master/docs/zh 

4, $ sender_io = new SocketIO (2120); this must be set declaratively IP address SocketIO.php file.

 

 

 Indicate on the 8090 socket server listening port

5, the client starts to connect the server

 

 

 

Guess you like

Origin www.cnblogs.com/jn1011/p/12420175.html