【问题标题】:electron+figwheel on Mac causes websocket connection errorMac上的electron+figwheel导致websocket连接错误
【发布时间】:2015-10-09 17:04:07
【问题描述】:

背景

我正在尝试将 figwheelelectron(atom-shell) 集成。我用

lein new figwheel hello-world -- --reagent

生成figwheel 部分,并从electron quick start 复制电子部分。生成的项目是here

问题

通过以下方式运行项目:

  1. 打开终端并启动 figwheel lein figwheel
  2. 打开另一个终端,通过electron .启动Electron。

但是它在 Mac 上失败了。电子部分显示如下日志:

[5848:0720/220633:INFO:CONSOLE(62)] "WebSocket connection to 'ws://localhost:3449/figwheel-ws/dev' failed: Connection closed before receiving a handshake response", source: file:///Users/foo/repos/cljs-douban/resources/public/js/compiled/out/figwheel/client/socket.js (62) [5848:0720/220635:INFO:CONSOLE(82)] "Figwheel: trying to open cljs reload socket", source: file:///Users/foo/repos/cljs-douban/resources/public/js/compiled/out/figwheel/client/utils.js (82)

但是,同样的项目也可以在 Linux 上运行。谷歌搜索,没有正确的结果,请帮忙。

【问题讨论】:

    标签: node.js macos electron figwheel


    【解决方案1】:

    在搜索“MAC websocket 连接错误”后,我遇到了类似的问题here

    这是我设置的代理'localhost',导致连接错误。禁用代理解决了这个问题。给您带来不便,敬请见谅。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-25
      • 2018-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-21
      • 1970-01-01
      • 2019-11-17
      相关资源
      最近更新 更多