Maison  >  Article  >  développement back-end  >  php websocket 实现登录用户,点对点通信,该如何处理

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

WBOY
WBOYoriginal
2016-06-13 12:18:212260parcourir

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

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:php惯用正则Article suivant:php自定义apk安装包范例