This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-28
Channels
- # aleph (50)
- # announcements (3)
- # aws (35)
- # beginners (74)
- # boot (25)
- # calva (39)
- # cider (18)
- # clara (2)
- # cljdoc (18)
- # cljs-dev (24)
- # cljsrn (11)
- # clojure (166)
- # clojure-europe (13)
- # clojure-italy (5)
- # clojure-nl (6)
- # clojure-spec (35)
- # clojure-uk (263)
- # clojurescript (22)
- # clojutre (1)
- # code-reviews (34)
- # cursive (58)
- # data-science (2)
- # datascript (4)
- # datomic (4)
- # duct (6)
- # emacs (7)
- # figwheel-main (9)
- # fulcro (2)
- # graphql (3)
- # hoplon (22)
- # hyperfiddle (2)
- # juxt (5)
- # kaocha (6)
- # leiningen (33)
- # luminus (15)
- # off-topic (1)
- # pedestal (5)
- # reagent (18)
- # reitit (12)
- # shadow-cljs (171)
- # vim (5)
[goog.net.WebSocket] Opening the WebSocket on
INFO [com.nextjournal.renderer:24] - renderer started on 127.0.0.1 : 3000
[goog.net.WebSocket] An error occurred: undefined
[ 2.184s] [goog.net.WebSocket] An error occurred: undefined
[goog.net.WebSocket] The WebSocket on closed.
[ 2.185s] [goog.net.WebSocket] The WebSocket on closed.
[goog.net.WebSocket] The WebSocket disconnected unexpectedly: undefined
[ 2.186s] [goog.net.WebSocket] The WebSocket disconnected unexpectedly: undefined
[goog.net.WebSocket] Seconds until next reconnect attempt: 1
[ 2.186s] [goog.net.WebSocket] Seconds until next reconnect attempt: 1
/Users/kommen/work/nextjournal.com/journal/renderer/compiled/out/renderer/goog/asserts/asserts.js:62
goog.debug.Error.call(this, goog.string.subs.apply(null, messageArgs));
^
AssertionError: Assertion failed: This browser does not support WebSocket
at new goog.asserts.AssertionError (/Users/kommen/work/nextjournal.com/journal/renderer/compiled/out/renderer/goog/asserts/asserts.js:62:20)
at Object.goog.asserts.doAssertFailure_ (/Users/kommen/work/nextjournal.com/journal/renderer/compiled/out/renderer/goog/asserts/asserts.js:121:11)
at Object.goog.asserts.assert [as assert] (/Users/kommen/work/nextjournal.com/journal/renderer/compiled/out/renderer/goog/asserts/asserts.js:151:18)
at goog.net.WebSocket.open (/Users/kommen/work/nextjournal.com/journal/renderer/compiled/out/renderer/goog/net/websocket.js:261:16)
at listOnTimeout (timers.js:327:15)
at processTimers (timers.js:271:5)
and when I look at the code of figwheel repl, ensure-websocket
should ensure to use ws
instead of goog.net.Websocket
on nodejs: https://github.com/bhauman/figwheel-repl/blob/4dde36a330ef7d0c6008c44ef1425161d4b3581c/src/figwheel/repl.cljc#L451-L464
but ws-connect
then just uses goog.net.Websocket
after all, which causes the assertion: https://github.com/bhauman/figwheel-repl/blob/4dde36a330ef7d0c6008c44ef1425161d4b3581c/src/figwheel/repl.cljc#L466-L470
I don’t understand though how this is different as with clojure -m figwheel.main -t node -r
, which works