Skip to content

无法向指定用户发送消息 #409

@saucerman

Description

@saucerman

用户A向用户B发送消息,无法向用户B发送
代码:
$ws->to(A的fd)->emit(事件,数据);
$ws->to(B的fd)->emit(事件,数据);
发现用户B的这段代码获取不到东西,好像阻塞了,后调试发现没有调用getClients()方法,用户A是没有问题的

Image Image

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