WebsocketSendData: {
    connection: Connection;
    event: LooseWebsocketEvent;
    expectResponse?: B;
    message: WebsocketSendDataMessage;
    persist?: boolean;
    responseHandler?: WebsocketResponseHandler;
}

Input for sending websocket data.

Type Parameters

Type declaration

  • connection: Connection

    The connection to send to.

  • event: LooseWebsocketEvent

    The event to send to.

  • OptionalexpectResponse?: B

    Whether or not a response is expected.

  • message: WebsocketSendDataMessage

    The actual message to sent.

  • Optionalpersist?: boolean

    Whether or not the message should be persisted in the database.

  • OptionalresponseHandler?: 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.