Skip to content

createWebSocketStream supports either text or binary messages (but not mixed) #1804

@viyaha

Description

@viyaha

Description

Websockets can receive binary or text messages. Using createWebSocketStream forces the decision to receive either string or buffer results.

Expected result:

Text messages are received as string, binary messages are received as buffer.

Actual result:

Without specified encoding: All text messages are converted to buffers.
With specified encoding: All binary messages are converted to string.

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