【发布时间】:2014-08-28 01:46:05
【问题描述】:
我使用来自 github.com 的 netty-socketio 1.6.6 和 netty-socketio-demo
var socket = io.connect('http://192.168.202.13:9092', {'username': 'ron', 'password': '1111'});
当我发送消息时,我可以在
中找到它[nioEventLoopGroup-3-1] INFO com.corundumstudio.socketio.handler.PacketHandler - In message: 5:::{"name":"chatevent","args":[{"userName":"user470","message":"ssssssssss"}]} sessionId: 9c6f22f4-7d19-4632-ba50-4eb70b845a13
但是在连接时,我找不到'username': 'guo', 'password': '1111'
[nioEventLoopGroup-3-1] INFO com.corundumstudio.socketio.handler.PacketHandler - In message: 2:: sessionId: 9c6f22f4-7d19-4632-ba50-4eb70b845a13.
我想做的是
1.认证。
2.向特定用户发送消息。
感谢您的帮助。
到目前为止,没有答案。慢慢地我意识到我把用户名和密码放在了错误的地方。 我需要编写一个 anthentification 事件来满足这个请求。 我对吗?
【问题讨论】: