-
I'm currently working on a project using Leptos SSR (Server-Side Rendering) and I'm interested in implementing WebSocket connections. I'm using the start-axum-workspace template as a base for my project. Is there a recommended approach or best practice for implementing WebSocket connections in the Leptos SSR template? I'd appreciate any guidance or examples you can provide. Thank you in advance for your help! Best regards, Victor Ferreira da Silva. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For the client side, you might like to explore the |
Beta Was this translation helpful? Give feedback.
For the client side, you might like to explore the
use_websocket
function from leptos-use, as this should be pretty smooth to use with the rest of the framework! For the server end of the websocket, I don't think there are any Leptos particulars; you can use whichever Axum-compatible websocket library you'd like. (I am not very familiar with them or I would offer a recommendation.)