【问题标题】:Is it possible to use WebSockets in Thunderbird addons?是否可以在 Thunderbird 插件中使用 WebSockets?
【发布时间】:2020-07-17 13:19:40
【问题描述】:

在 Firefox 上绝对可以,但相同的代码在 Thunderbird 上不起作用。

这是我正在尝试做的一个示例:

在我的 background.js 中:

console.log("a");

let ws = new WebSocket("wss://echo.websocket.org");

console.log("b");

但我只能在调试控制台中得到这个结果:

Webconsole context has changed
a background.js:1:9
Webconsole context has changed
: background.js:3
    <anonyme> moz-extension://e908747f-c410-4427-8868-1336f813f1cd/background.js:3

我正在 Thunderbird v68.6.0 上进行测试。

【问题讨论】:

    标签: websocket thunderbird thunderbird-addon


    【解决方案1】:

    当我发布此问题时,无法在 Thunderbird 中使用 WebSocket。

    在我输入此消息的那一刻,该错误正在解决。

    你可以在这里关注它:https://bugzilla.mozilla.org/show_bug.cgi?id=1627649

    编辑:自 Thunderbirg 77.0beta3 以来,该错误已得到解决,并且 WebSockets 可用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-21
      • 2018-11-10
      • 2010-10-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多