After installing and configuring the plugin, go to the server console and execute the
Code:
php socket_server.php start
command in the root of the forum to start the server socket. We also open the server socket TCP port for listening before starting.
To stop the
Code:
php socket_server.php stop
Server status
Code:
php socket_server.php status
Server restart
Code:
php socket_server.php restart
Sample configs for connecting through a proxy
Code:
location /socket.io/ {
proxy_pass http://127.0.0.1:2053;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
Code:
extprocessor socket.io {
type proxy
address 127.0.0.1:2053
maxConns 2000
pcKeepAliveTimeout 60
initTimeout 60
retryTimeout 0
respBuffer 0
}
context /socket.io/ {
type proxy
handler socket.io
addDefaultCharset off
}
websocket /socket.io {
address 127.0.0.1:2053
}