Closed momerath42 closed 3 months ago
When providing the host option to portal/open, the websocket url provided to javascript lacks the port, resulting in: Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'ws://<ip>:NaN/rpc?<uuid>' is invalid.
host
port
Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'ws://<ip>:NaN/rpc?<uuid>' is invalid.
Fix as suggested by djblue
@momerath42 were you able to test out if this solution fixed your issue?
Yes; tested and fixed my issue.
When providing the
host
option to portal/open, the websocket url provided to javascript lacks theport
, resulting in:Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL 'ws://<ip>:NaN/rpc?<uuid>' is invalid.
Fix as suggested by djblue