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

    Interface IArticleEvents

    文章事件监听器

    interface IArticleEvents {
        close: (event: CloseEvent) => void;
        comment: (msg: ArticleComment) => void;
        error: (error: ErrorEvent) => void;
        heat: (msg: IArticleHeat) => void;
        open: (event: Event) => void;
    }

    Hierarchy

    • IWebSocketEvent
      • IArticleEvents
    Index

    Properties

    close: (event: CloseEvent) => void

    Websocket 关闭

    comment: (msg: ArticleComment) => void

    评论通知

    Type Declaration

    error: (error: ErrorEvent) => void

    Websocket 错误

    heat: (msg: IArticleHeat) => void

    热度更新

    Type Declaration

    open: (event: Event) => void

    Websocket 打开