Home  >  Article  >  Backend Development  >  php websocket 实现登录用户,点对点通信,该如何处理

php websocket 实现登录用户,点对点通信,该如何处理

WBOY
WBOYOriginal
2016-06-13 12:18:212261browse

php websocket 实现登录用户,点对点通信
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

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
Previous article:php惯用正则Next article:php自定义apk安装包范例