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

Possible WebRTC support? #25

Closed
LiHe93 opened this issue Aug 15, 2019 · 2 comments
Closed

Possible WebRTC support? #25

LiHe93 opened this issue Aug 15, 2019 · 2 comments

Comments

@LiHe93
Copy link

LiHe93 commented Aug 15, 2019

A bit of a big thing, but if it can be implemented it will truely make librg cross-platform.

There is the Intel WebRTC Datachannel Microstack, a C99 little library which is conveniently also licensed under Apache 2.0:
https://github.com/HumbleNet/webrtc?files=1

And Humblenet has an example of a shared ABI between it and browser's RTC implementation:
https://github.com/HumbleNet/HumbleNet/blob/master/src/humblenet/src/libwebrtc.h

It's also a little similar to Enet with reliable/unreliable packets and peer to peer nature.

@inlife
Copy link
Member

inlife commented Aug 15, 2019

Hello @LiHe93

I must say that right now it is relatively impossible since librg is locked to the enet.

However, we had plans for some future major versions to allow interchangeable network lib layer.
So it would work the same way without regards if you are using enet (or any other lib) via UDP or TCP (including WebRTC).

@zpl-zak
Copy link
Member

zpl-zak commented Jun 5, 2020

Closing as the library no longer provides networking on its own and therefore can be used with WebRTC without any issues.

@zpl-zak zpl-zak closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants