Skip to content

Does not work with web #14

@eamers

Description

@eamers

This package uses IOWebSocketChannel, which unfortunately does not work with web. (The exception "Unsupported operation: Platform._version" gets thrown.

The workaround is to use WebSocketChannel which then determines whether to use IOWebSocketChannel or HTMLWebSocketChannel based on platform.

The downside to this solution is that headers cannot be included in the connection as there isn't an adequate standardization of handling headers across browsers.

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