LearnBoost/socket.io — Issue #601: Multiplexing connection and client disconnect
Author: MrJoes
Created: 2011-10-28 10:41:29+00:00
State: open

I'm writing python server implementation for 0.8x socket.io and stumbled upon a problem.

If I have two namespaced connections over one transport connection, I see following in my logs:
1::/chat
1::/ping

Which is correct.

Then, on client side I'm doing chat.close() which sends following packet:
0::/chat

But anytime I want to reconnect chat socket by doing:
chat = io.connect('http://localhost:8001/chat')

It is not sending anything to the server - it does not attempt to reestablish virtual connection.

When I'm doing chat.send('blabla'), I'm seeing message being sent to the server:
3::/chat:blabla

Obviously, server does not like it and rejects.