从浏览器(扩展名)启动TCP连接?

时间:2013-03-23 17:40:40

标签: browser tcp google-chrome-extension firefox-addon

是否可以从浏览器启动TCP连接?

如果是这样,是否已存在执行此操作的浏览器(尤其是Firefox和Chrome)扩展程序?如果还没有扩展,您是否知道创建Firefox / Chrome浏览器启动的TCP连接的核心元素/功能?

2 个答案:

答案 0 :(得分:0)

有Websockets,但它们仅限于in RFC 6455概述的websocket协议。

到目前为止,大多数现代网络浏览器support it

答案 1 :(得分:0)

Chrome浏览器(我认为自稳定频道中的v24以来)允许您托管TCP服务器,示例表明它可以连接到telnet服务器,这意味着它也可以作为TCP客户端。< / p>

https://github.com/GoogleChrome/chrome-app-samples/tree/master/tcpserver

https://github.com/GoogleChrome/chrome-app-samples/tree/master/telnet

但这些都不是标准化的,因此,如果您可以使用websockets,请选择。

http://developer.chrome.com/apps/socket.html

相关问题