php socket_server start -d
php socket_server stop
php socket_server restart
php socket_server info
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";
}
ProxyPass /socket.io/ http://localhost:2020/ upgrade=websocket
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
}