notgull / smol-axum

`smol` integrations with `axum`
Apache License 2.0
18 stars 0 forks source link

WebSocket example #1

Open df51d opened 1 week ago

df51d commented 1 week ago

I have trouble setting up simple websocket example, it panics with an error when calling on_upgrade:

there is no reactor running, must be called from the context of a Tokio 1.x runtime

Because axum tries to use tokio::spawn when upgrading. An example would be much appreciated.

notgull commented 1 week ago

Support for this would need to be added to smol-axum.