Skip to content

leaflet-dioxus-example "failed websocket connection" #38

@skeeters1

Description

@skeeters1

Just starting a new project and want to use leaflet in Dioxus. The basic and yew examples run fine. The dioxus example builds and serves but get a blank browser window and console error

WebSocket connection to 'ws://localhost:8080/_dioxus/hot_reload' failed:
(anonymous) @ leaflet-dioxus-example-20fb79f9e918b3d0.js:5

I'm new to dioxus, but have been playing with their "HotDog!" tutorial example which works, so dioxus itself seems to be installed and working.

I noted a couple of minor things e.g. the --hot-reload option is no longer necessary (or even valid: you need --hot-reload true) so I wonder if the example is simply a bit out of date in the fast-breaking world of wasm. Unfortunately I lack the knowledge to debug it.

Replicated issue on two machines, both Ubuntu 24.04.2 LTS, rustc 1.84.1

Would be very grateful for help - it seems I could get started in yew (or possibly Seed) but I would much prefer Dioxus. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions