[Solved] WebSocket is already in CLOSING or CLOSED state.

I try to do WebSocket with Javascript, PHP, and Wamp but I have the error “WebSocket is already in CLOSING or CLOSED state” when I do a send. I have used source code here. I use port 11345, I have tried port 80, with same result. After having initialized socket, the status remains 3. It seems that socket.onopen is never called, but why ?

Seems different from post with the same error found on Stackoverflow. All is in local, I have turned off firewall, running on Chrome 36, currently the latest.

Thanks beforehand.


The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.