Skip to content

ws socket instance #27

@pliablepixels

Description

@pliablepixels

Hello, thanks for this great library.
The example shows the socket being instantiated in .run
I am trying to move this to a factory - it works fine, but when I switch to background and back, it creates a new instance of ws (because I am calling the factory method on resume). Is there any way to make sure only one instance of ws is used?

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