WebExtension中的TCP服务器 [英] TCP server in WebExtension

本文介绍了WebExtension中的TCP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以启动将使用Firefox WebExtension侦听端口的TCP服务器?我知道存在使用XUL/XPCOM扩展名启动服务器的方法,但是它已过时,从2017年11月起将不再受支持(不推荐使用).感兴趣的问题与Google chrome有关.

Is there a way to start the TCP server that will listen port using Firefox WebExtension? I know that exist way to start server with XUL/XPCOM extension, but it is obsolete and will not be supported (deprecated) from November 2017. The same question interests and about google chrome.

推荐答案

否,Chrome扩展程序/Firefox WebExtension无法打开套接字进行监听.

No, a Chrome Extension / Firefox WebExtension cannot open a socket to listen.

但是,您可以有一个单独的本地主机为您做到的组件.它需要单独安装.

However, you could have a separate Native Host component that does it for you. It will need to be installed separately.

这篇关于WebExtension中的TCP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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