Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: cross-platform websocket API #53

Open
jkelleyrtp opened this issue Jul 25, 2024 · 2 comments
Open

Request: cross-platform websocket API #53

jkelleyrtp opened this issue Jul 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jkelleyrtp
Copy link
Member

jkelleyrtp commented Jul 25, 2024

I love using websockets, and frequently set them up for various projects, but there's no great websocket library that does both wasm and native.

I might be bad at sleuthing crates.io, but I can't find a ws library that has backoffs, reconnects, heartbeats, and works across platforms.

These looks nice:
https://crates.io/crates/reconnecting-websocket
https://crates.io/crates/stream-ws

As part of our sdk we should provide a really nice websocket library that we can point people to when they inevitably need websockets for their crossplatform apps.

It'd be great if this could also integrate with our future plans to integrate websockets into dioxus-fullstack / liveview.

@jkelleyrtp jkelleyrtp added the enhancement New feature or request label Jul 25, 2024
@marc2332
Copy link
Collaborator

I honestly don't see the point of doing this in the SDK. Don't get me wrong, the idea of having a simple library for WebSockets is a good idea, but it doesn't have to be connected to Dioxus at all. Maybe it could be done in a standalone repo under the DioxusLabs org.

When it comes to actual integrations with Dioxus in the form of hooks or other ways, that could definitely be done in the SDK

@DogeDark
Copy link
Member

I agree. I'd say similar for a lot of stuff that may go in SDK, like mobile features.

I've wanted to release geolocation as it's own crate but have avoided it as more crates is more overhead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants