Skip to content

请问怎么监听websocket服务停止? #410

@justin-xean

Description

@justin-xean
Image 看代码,监听了beforeWorkerStop事件,但是我想在断开时触发所有连接的close事件,请问怎么监听呢 Image Image

我这样能拿到workerId,但是不知道怎么拿当前worker的websocket实例,求大佬解惑~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions