@realsee/vr-signals API Documentation - v2.0.0
    Preparing search index...

    Interface Message<MessageType>

    消息结构体

    interface Message<MessageType extends keyof MessageMap> {
        timestamp: number;
        uid: string;
        type: MessageType;
        payload: MessageMap[MessageType];
        fromId: string;
        toId: string | string[];
    }

    Type Parameters

    Index

    Properties

    timestamp: number

    消息发出的时间戳

    uid: string

    消息的唯一标识

    消息类型,区分事件和方法

    消息体,不同消息类型有不同的 payload

    fromId: string

    消息发送者 id

    toId: string | string[]

    消息接收者 id 集合