varspool / Wrench

A simple PHP WebSocket implementation for PHP 7.1
Do What The F*ck You Want To Public License
596 stars 210 forks source link

Socket is not Connected while refresh #29

Closed LunaPg closed 11 years ago

LunaPg commented 11 years ago

Hello ! While reloading a page with VarpoolWebSocket on Symfony 2 the Socket fails. 1- It disconnect properly the client 2- It Connected properly 3- The Hadshake is successful 4- When sending a message with send() function I've this error : warning: Wrench\ConnectionManager: Error on client socket: exception 'Wrench\Exception\SocketException' with message 'Socket is not connected' in /opt/lampp/htdocs/Korum/vendor/wrench/lib/Wrench/Socket/Socket.php:248

My wrench and my WebsocketsocketBundle are up to date both.

Rupert-RR commented 11 years ago

If this is still an issue... Have you checked in the browser what the status of the connection is before you get this message?

LunaPg commented 11 years ago

I've found the problem a long time ago (sorry, you know, crush time ae still horrible :P) In fact, this bug comes from the Symfony 2's WebSocketBundle. There's a error in all of the demo code ;)

Wrench is just fine :) thanks you !