Skip to content

Multiplexing connection and client disconnect #601

Closed
@mrjoes

Description

@mrjoes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions