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.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27 - MariaDB 10.3.16
Wampserver 3.1.9 64 bit - Apache 2.4.41 - PHP 7.3.8/7.2.21/7.1.31/7.0.33/5.6.40 - MySQL 5.7.27/8.0.17 - MariaDB 10.3.16
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.