Websockets是否允许服务器在浏览器中运行? [英] Will Websockets allow a server to run in the browser?

查看:98
本文介绍了Websockets是否允许服务器在浏览器中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何Websockets侦听功能的计划?

Are there any plans for a Websockets listen function?

在浏览器中允许对等应用程序可能具有革命性。

Allowing peer to peer applications in the browser could be revolutionary.

我找到了这个答案: HTML5是否允许Web应用程序进行点对点HTTP连接?但它相当陈旧。我认为它引用的规范(Connection api)现在已被Websockets取代,后者没有提及任何监听设施。

I found this answer: Will HTML5 allow web apps to make peer-to-peer HTTP connections? but it is rather old. I think the specification it refers to (the Connection api) has now been replaced with Websockets, which does not mention any listen facility.

推荐答案

WebSockets API 没有提供一种倾听连接的方式;它仅供客户使用。

The WebSockets API does not provide a way to listen for connections; it is client only.

您可能对 Opera Unite

更新:

另请查看 pusherapp 。这是一个在线WebSockets服务。它们为超过5个客户收费,但设置和使用非常简单。根据您的p2p应用程序要求,它可能就足够了。

Also check out pusherapp. It's a WebSockets service online. They charge for over 5 clients, but it's super simple to setup and use. Depending on what your p2p application requirements are, it might suffice.

这篇关于Websockets是否允许服务器在浏览器中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆