欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php websocket 实现登录用户,点对点通信

程序员文章站 2022-06-14 09:55:28
...
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