djblue / portal

A clojure tool to navigate through your data.
https://djblue.github.io/portal/
MIT License
872 stars 81 forks source link

websocket connection doesn't use correct port #141

Closed hiredman closed 1 year ago

hiredman commented 1 year ago

I use something like

(do
  ((requiring-resolve 'portal.api/open)  {:portal.launcher/port 1111 :portal.launcher/host "strange.home.arpa"})
  (add-tap (requiring-resolve 'portal.api/submit)))

to start portal and then click on the link it prints out like

Goto http://strange.home.arpa:1111?81444db3-34f5-4a4a-aebd-821bae6bfe7a to view portal ui.

which results in a blank page and a console log with

Firefox can’t establish a connection to the server at ws://strange.home.arpa/rpc?81444db3-34f5-4a4a-aebd-821bae6bfe7a.

in it in my browser