Skip to content

Initial messages may be lost #20

Open
@joshkel

Description

@joshkel

The use of await when handling the "initially" WebSocket message may cause incoming messages to be lost. Event handlers like ws.on('message', ...) may not get installed until after the asynchronous method completes, so any WebSocket events during that time period aren't handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions