A standardized way socket messages are dispatched and their responses are handled

Methods

Methods

  • Send a socket request to all other clients and handle their responses.

    Parameters

    • eventName: string

      The socket event name being handled

    • request: object | DocumentSocketRequest

      Request data provided to the Socket event

    Returns Promise<SocketResponse>

    A Promise which resolves to the SocketResponse