尝试让 SuperWebSocket 服务器在 mono/c# 下工作
我之前使用过 Nugget (http://nugget.codeplex.com/),但是当我升级到Chrome 14,它停止工作,就在那时我发现了这个项目: http://superwebsocket.codeplex.com/。
我在这里读过这一点: Is superwebsocket available in asp.net by默认?,我还构建了 SuperSocket 的单声道版本。使用 Chrome 14 连接,websocket 在 Chrome 中仅显示为待处理。
我在服务器端日志文件中看到这样的消息:
INFO 2011-09-22 23:44:03,924 17166ms uer - WebSocket Server - Session: 1a2dc865-9d02-468e-ac7b-26f3d0b96a2a/127.0.0.1:49261 新的 SocketSession 被接受!
但 WebSocketServer.NewSessionConnected 事件永远不会触发。但是,我确实看到 WebSocketServer.SessionClosed 事件触发。
任何人都知道为什么新的会话连接事件永远不会触发,和/或为什么 Chrome 从未收到来自套接字服务器的任何响应?
I was using Nugget before (http://nugget.codeplex.com/), but when I upgraded to Chrome 14, it stopped working, and that's when I found this project: http://superwebsocket.codeplex.com/.
I've read this bit here: Is superwebsocket available in asp.net by default?, and I've also built the mono version of SuperSocket. Connecting with Chrome 14, and the websocket just shows as pending in Chrome.
I see a message like this in the server side logfile:
INFO 2011-09-22 23:44:03,924 17166ms uer - WebSocket Server - Session: 1a2dc865-9d02-468e-ac7b-26f3d0b96a2a/127.0.0.1:49261
New SocketSession was accepted!
But the WebSocketServer.NewSessionConnected event never fires. I do see the WebSocketServer.SessionClosed event firing however.
Anyone have any ideas why the new session connection event never fires, and/or why Chrome never receives any response from the socket server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用的是哪个版本的 SuperWebSocket?
最新的源支持Chrome 14,但目前还没有下降。
所以你应该自己下载源代码。
另一个问题是SuperSocket,SuperWebSocket所基于的SuperSocket 1.4 SP1在发行包中没有MONO组件,因此您需要自己构建它。
Which version of SuperWebSocket are you using?
The latest source support Chrome 14, but there is no drop for it for now.
So you should download source code by yourself.
Another problem is SuperSocket, SuperSocket 1.4 SP1 which SuperWebSocket base on has no MONO assemblies in release package, so you need build it by yourself.