wkjagt / Extendible-Web-Socket-Server

Extendible websockets server in PHP, including hooks.
36 stars 9 forks source link

Getting 'handshake failed' or 'Socket was disconnected' #2

Open HardlyMirage opened 13 years ago

HardlyMirage commented 13 years ago

I am getting too many handshake failed, I was able to connect just three times. The rest of the time I keep getting one of the following messages:

Requesting handshake for user 4df551698115c Done handshaking for user 4df551698115c Socket was disconnected USER 4df551698115c DISCONNECTED! USER 4df5516d82578 CONNECTED!

Requesting handshake for user 4df5516d82578 Handshake failed USER 4df5516d82578 DISCONNECTED! USER 4df55171832e0 CONNECTED!

The USER xxxx DISCONNECTED is immediate, and I tried refreshing the front-end page too, that did not fix it.

hkirsman commented 13 years ago

Sama problem here. Using chrome 14 and Firefox 6.

hkirsman commented 13 years ago

It works in Firefox 4 though if you enable network.websocket.override-security-block in about:config

So the protocol has changed. It had security flaws and it's still being developed.

It would be cool if somebody fixed this here! We want websockets for php!! Thank you!