You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use rumqtt as a client in a leptos application where the Rust side of the application is compiled to wasm and runs on a web browser. Looking at the rumqtt code, it looks like the websocket support is managing the websocket protocol as if it is on a native host connecting to a broker.
For wasm on the browser, my understanding is that using web-sys websockets is the way to manage the connection, and then give rumqtt a compatible binding to that web-sys connection. Because of the way the EventLoop manages the network connection itself, I'm not sure if this is possible. It's like I need the logic of the EventLoop, with an abstract transport mechanism to handle the actual network transmission/reception.
Is there a logical approach I could take, or is there a better way to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to use rumqtt as a client in a leptos application where the Rust side of the application is compiled to wasm and runs on a web browser. Looking at the rumqtt code, it looks like the websocket support is managing the websocket protocol as if it is on a native host connecting to a broker.
For wasm on the browser, my understanding is that using web-sys websockets is the way to manage the connection, and then give rumqtt a compatible binding to that web-sys connection. Because of the way the EventLoop manages the network connection itself, I'm not sure if this is possible. It's like I need the logic of the EventLoop, with an abstract transport mechanism to handle the actual network transmission/reception.
Is there a logical approach I could take, or is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions