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

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

Hi,

Using WebSocket on Apache server

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.9 32 bit - Apache 2.4.39 - PHP 7.3.6/7.2.19/7.1.30/7.0.33/5.6.40 - MySQL 5.7.26 - MariaDB 10.3.15
Wampserver 3.1.9 64 bit - Apache 2.4.39 - PHP 7.3.6/7.2.19/7.1.30/7.0.33/5.6.40 - MySQL 5.7.26/8.0.16 - MariaDB 10.3.15
PhPMyadmin 4.9.0.1 - 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 »

Options: ReplyQuote


Sorry, only registered users may post in this forum.