繁体   English   中英

高速公路websocket

[英]Autobahn websocket

我正在评估和构建一个带有autobahn websocket的简单websocket服务器

有没有人使用子类WrappingWebSocketServerProtocol ,是否有使用此实现的任何示例? 与WebSocketServerProtocol相比有什么好处以及要覆盖/实现的子方法

谢谢

AutobahnPython允许您通过 WebSocket运行基于基于流的传输协议(如Telnet,IMAP,VNC,...)构建的任何应用程序协议。 对于这种包装,您将使用WrappingWebSocketServerProtocol和相关类。

AutobahnPython还允许在任何基于流的传输协议/工具(如Unix域套接字,管道,串行,......)上运行WebSocket。 为此,您将使用端点https//github.com/tavendo/AutobahnPython/tree/master/examples/twisted/websocket/echo_endpoints

现在,上面两个都涵盖了特殊用例,如果你想做一个“普通”的WebSocket应用程序,你只需要使用WebSocketServerProtocol和相关的类。

如果有人感兴趣,请找到以下示例列表的一些答案:

https://github.com/tavendo/AutobahnPython/tree/master/examples/twisted/websocket/wrapping

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM