我尝试构建一个小型实时websocket用例,用户可以在其中登录并查看所有其他登录用户,在新用户登录或现有用户注销时收到通知。对于这种情况,当用户登录或注销时,我在我的UserController中使用ZMQPUSHSocket。用户Controllerpublicfunctionlogin(){//...hereistheauthcode,modelcalletc...$aUserData=array();//userdatacomesfromthedatabasewithusername,logintime,etc....$context=new\ZMQContext();$oSo