I cannot establish a connection with the PHP WebSocket server, client closes it with code 1006 "Abnormal Closure".
Client code:
var host = "ws://example.com:1234/test/server.php";
Server Code (test/server.php):
$host = 'tcp://example.com:1234';
- I tried different WebSocket PHP libraries.
- I tried different hosts ("127.0.0.1", "0.0.0.0", "example.com").
sudo netstat -plnt
shows that port is listened.- Appropriate TCP port is opened (firewall settings in ISPConfig 3).
But connection still not working. Any ideas?
Thank you in advance.