lustre-labs / lustre

A Gleam web framework for building HTML templates, single page applications, and real-time server components.
https://hexdocs.pm/lustre
MIT License
1.19k stars 76 forks source link

server-component does not respect absolute route #214

Open ofekd opened 1 day ago

ofekd commented 1 day ago

Error is:

lustre-server-component.mjs:488 Uncaught SyntaxError: Failed to construct 'WebSocket': The URL 'ws://localhost:1234ws://localhost:8000/sessions-count' is invalid.
    at LustreServerComponent.attributeChangedCallback (lustre-server-component.mjs:488:26)
    at createElementNode (client.mjs:2795:12)
    at morph (client.mjs:2720:23)
    at #tick (client.mjs:3099:5)
    at client.mjs:3016:23