Skip to content

no way to handle streaming api websocket connections errors #1

@wryk

Description

@wryk

With current stream method there is no way to know about underlying websocket connection errors and handle them when necessary.

Returning an event emitter decorating WebSocketConnection (or directly the WebSocketConnection event emitter) would allow to do that.

What do you think about something like (stream: string, recieved: (message: {event: string, payload: any}) => void): Promise<WebSocketConnection> instead of current stream: string, recieved: (message: {event: string, payload: any}) => void) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions