建议补上onSwooleWSClose方法的第三个参数 · Issue #60 · SwooleDistributed/SwooleDistributed · GitHub
Skip to content

建议补上onSwooleWSClose方法的第三个参数 #60

Description

@BreezeCode

SwooleWebSocketServer中方法onSwooleWSClose($serv, $fd, $reactorId);
swoole-1.9.7版本修改了$reactorId参数,当服务器主动关闭连接时,底层会设置此参数为-1,可以通过判断$reactorId < 0来分辨关闭是由服务器端还是客户端发起的。
建议补上该参数

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions