WebSocket error
Posted by: arnb (---.dyn.optonline.net)
Date: June 03, 2019 07:06PM

Attempting to test a php WebSocket Server in WampServer without success, and I am out of options. WebSockets are enabled in php extensions. My Javascript client test script connects with websocketstest.com so this is definitely a server issue. Any suggestions appreciated.

Error received: First- onerror function throws "connection failed" followed by onclose function throwing
1006 error code: The connection was closed abnormally, e.g., without sending or receiving a Close control frame

The client Javascript console shows
Firefox can’t establish a connection to the server at ws://192.168.0.101/cz/shmdelay/websocket.php
client executes from 192.168.0.101 so this should not a be CORS issue

The PHP websocket window shows
Server started Listening on: 192.168.0.101:80 Master socket: Resource id #4

PHP error log is empty

Re: WebSocket error
Posted by: Otomatic (Moderator)
Date: June 04, 2019 12:05PM


Sorry, only registered users may post in this forum.