FishPi.js API Documentation - v0.1.30
    Preparing search index...

    Interface IChatEvents

    私聊事件监听器

    interface IChatEvents {
        close: (event: CloseEvent) => void;
        data: (msg: IChatData) => void;
        error: (error: ErrorEvent) => void;
        open: (event: Event) => void;
        revoke: (oId: string) => void;
    }

    Hierarchy

    • IWebSocketEvent
      • IChatEvents
    Index

    Properties

    close: (event: CloseEvent) => void

    Websocket 关闭

    data: (msg: IChatData) => void

    私聊消息

    Type Declaration

    error: (error: ErrorEvent) => void

    Websocket 错误

    open: (event: Event) => void

    Websocket 打开

    revoke: (oId: string) => void

    撤回消息

    Type Declaration

      • (oId: string): void
      • Parameters

        • oId: string

          消息 ID

        Returns void