Type alias PresetConfig

PresetConfig: {
    content?: any;
    gets?: Serializable;
    getsFrom?: Record<string, Serializable>;
    returns?: any;
    sends?: Serializable;
    sendsTo?: Record<string, Serializable>;
}

This type is used to define the types involved in a communication preset.

Type declaration

  • Optional content?: any

    Type of the content argument received by the handler.

  • Optional gets?: Serializable

    The type received from the send

  • Optional getsFrom?: Record<string, Serializable>

    If different socket connections send different types through the get method, we can map specific socket names to different types. Overrides the gets property

  • Optional returns?: any

    Return type of the communication method.

  • Optional sends?: Serializable

    The type Sent to the connecting socket via the send method

  • Optional sendsTo?: Record<string, Serializable>

    If the types sent differ based on which socket is targeted, this option can map different types to specific connection names. Overrides the sends property.

Generated using TypeDoc