Skip to content

Delayed message event call on Flashsocket #70

@lumenlunae

Description

@lumenlunae

Hello,

Wondering if you could help me out on this one--Websocket transport works just fine on Chrome, but using Firefox (3.6.12) and Flashsocket, there's a consistent 5+ second delay from all the messages being called on the client.

What I mean is the server may send messages every 50ms (verified from setting WEB_SOCKET_DEBUG true), but when it finally gets to my message event callback
socket.on("message", function(msg) { /* here */ })

The callback might take 5 or more seconds to trigger, and do all the messages queued up at once.

I tried going through the WebSocket object in socket.io.js and the WebSocket.as files, and I think this line (from WebSocket.as): dispatchEvent(new Event("message")); is just taking too long to get triggered on the js file for some reason.

Any help would be appreciated--thanks!

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