Heim  >  Artikel  >  Backend-Entwicklung  >  php websocket 实现登录用户,点对点通信,该如何处理

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

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

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:php惯用正则Nächster Artikel:php自定义apk安装包范例