Use window.location.hostname for WebSocket connection
This commit is contained in:
parent
151ea479f3
commit
28ddae7f3a
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
(when-let [ws-port (.-SCITTLE_NREPL_WEBSOCKET_PORT js/window)]
|
||||
(set! (.-ws_nrepl js/window)
|
||||
(new js/WebSocket (ws-url "localhost" ws-port "_nrepl"))))
|
||||
(new js/WebSocket (ws-url (.-hostname (.-location js/window)) ws-port "_nrepl"))))
|
||||
|
||||
(when-let [ws (nrepl-websocket)]
|
||||
(prn :ws ws)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue