简体   繁体   English

是否可以在没有node.js的情况下使用socket.io?

[英]Is it possible to use socket.io without node.js?

标题几乎总结了一下...我想知道是否有一种方法可以在没有node.js的情况下使用socket.io

socket.io is a library that connects a browser web pages to some server somewhere. socket.io是一个库,用于将浏览器网页连接到某处的某些服务器。 There MUST be a socket.io server somewhere that does what you want that you can connect to. 必须在某处有一个socket.io服务器,它可以执行您想要连接的内容。

That socket.io server does not have to be written using node.js. 该socket.io服务器不必使用node.js编写。 There is socket.io support for other languages or environments. 没有其他语言或环境的socket.io支持。 The protocol and data format is fully documented so implementations can be written for any environment. 协议和数据格式已全面记录,因此可以针对任何环境编写实现。 For example, here's a socket.io server implementation in C++ . 例如,这是C ++中socket.io服务器实现

You can look on github for various server implementations: https://github.com/search?q=socket.io+server . 您可以在github上查看各种服务器实现: https : //github.com/search? q=socket.io+server。

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

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