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://
client executes from so this should not a be CORS issue

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

PHP error log is empty

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


Using WebSocket on Apache server

Wampserver 3.2.0 32 bit - Apache 2.4.41 - PHP 7.4.0/7.3.12/..../5.6.40 - MySQL 5.7.28 - MariaDB 10.4.10
Wampserver 3.2.0 64 bit - Apache 2.4.41 - PHP 7.4.0/7.3.12/..../5.6.40 - MySQL 5.7.28/8.0.18 - MariaDB 10.4.10
PhPMyadmin 4.9.2 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Sorry, only registered users may post in this forum.