Skip to content

Reuse Websocket #4

@neophenix

Description

@neophenix

Just realized that I'm not reusing the websocket, and relying on the onclose event to clean up, also on the onopen to send messages.

This should just be opened once on a page, and then reused. And instead of using onopen to send the message probably pass whatever connect function is made a callback that will send the message onopen or if we are already open, or queue it if we are connecting?

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