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

WBOY
Release: 2016-06-13 12:18:21
Original
2309 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template