Home >Backend Development >PHP Tutorial >php websocket 实现登录用户,点对点通信

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

WBOY
WBOYOriginal
2016-06-23 13:36:211847browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn