当前位置:Gxlcms > PHP教程 > phpwebsocket实现登录用户,点对点通信

phpwebsocket实现登录用户,点对点通信

时间:2021-07-01 10:21:17 帮助过:68人阅读

php websocket 如何实现登录用户,点对点通信
在建connection 里的,如果验证用户信息,急。。。


回复讨论(解决方案)

https://github.com/walkor/workerman-chat
这里有例子

登录部分代码
https://github.com/walkor/workerman-chat/blob/master/Applications/Chat/Web/index.php#L36
https://github.com/walkor/workerman-chat/blob/master/Applications/Chat/Event.php#L33

原来是这样,3q

人气教程排行