Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    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