Skip to content

'connect' event not fired, but connected is true. #773

@vicary

Description

@vicary

I am using socket.io-client 1.1.0 from CDN, and connects to my server which is also 1.1.0.

My page is under heavy load on startup, which takes care of all the initialization stuffs.

I found that the 'connect' event at client side is fired around 20% of the time, but checking socket.connected after page load is always true.

I suspect that the connect event is fired before it binds to my event handlers.

I think when a new event handler binds to the connect event, and the socket is currently connected, that handler should be triggered immediately.

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