zibri
    Preparing search index...

    Type Alias WebsocketSendData<Connection, B>

    Input for sending websocket data.

    type WebsocketSendData<
        Connection extends BaseWebsocketConnection,
        B extends boolean,
    > = {
        connection: Connection;
        event: LooseWebsocketEvent;
        expectResponse?: B;
        message: WebsocketSendDataMessage;
        persist?: boolean;
        responseHandler?: WebsocketResponseHandler;
    }

    Type Parameters

    Index

    Properties

    connection: Connection

    The connection to send to.

    The event to send to.

    expectResponse?: B

    Whether or not a response is expected.

    The actual message to sent.

    persist?: boolean

    Whether or not the message should be persisted in the data source.

    responseHandler?: WebsocketResponseHandler

    An optional handler for the response, if the implementation supports that. If not set and a response is expected, it gets emitted the default way.