[Go to site: main page, start]

Class SocketInterface

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

Index

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