-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Any intention of WebRTC Support? #10
Comments
Yes, My goal for a future version would be to decouple the UdpSocket from the server/client. I'm not sure about the approach yet. Maybe I'll do something similar to what I did with the renetcode crate, where we have functions to process/generate packets that can be sent/received from any transport layer. Or, something like a Transport trait so I can use a But independent of the approach, a UDP implementation would be provided. But the user could swap for other transport implementations: Async IO, WebRTC... could even do another UDP implementation that spawns another thread to do the message pooling. Some changes and experimentation are required to do this, so I'll probably do it after the initial release. |
Sorry to bother, but do you have any updates on this or if it will happen in the foreseeable future? I'm interested on using your lib but support for UDP WebRTC is a requirement. |
I also asked about this today on behalf of @fishfolks, and received the following answer from Lucas on Discord:
Cheers! We might be able to help implement the trait for web if it seems feasible to do for our game. |
I made #36 to move this discussion forward. What would be necessary to make a WASM compatible transport layer for renet? |
With the release of https://github.com/lucaspoffo/renet/releases/tag/0.0.12, now it's possible to implement other backends for the transport layer. |
You could also have it be cross platform with native apps by using something like webrtc-rs
The text was updated successfully, but these errors were encountered: