Background
I am trying to integrate figwheel with electron(atom-shell). I use
lein new figwheel hello-world -- --reagent
to generate figwheel
part, and copied the electron part from electron quick start. The resulting project is here.
Question
Run the project by:
- Open a terminal and start figwheel
lein figwheel
- Open another terminal, start Electron by
electron .
.
However it fails on Mac. The electron part shows the following log:
[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)
However, the same project works on Linux. Googled and no correct result, Please kindly help.