@mothepro/ez-rtc
v0.1.0
Published
Simplify the data Peer to Peer (RTC) connenctions in browser
Downloads
1
Readme
EZ RTC
Simplify the data Peer to Peer (RTC) connenctions in browser
View the Compatibility to see which browsers support this.
Install
yarn add @mothepro/ez-rtc
How to Use
- Create an offer on the first browser
- Copy offer and send to the second browser
- Paste offer in second browser and click Join
- Create an answer on the second browser
- Copy answer and send to the first browser
- Paste answer in first browser and click Join
- Messages can now be sent between browsers
See the demo for a simple how-to
Note: Browsers may not send empty messages
Roadmap
Add a way to test RTC support in general (Connection with a STUN can be made) Support a given timeout in the constructor? Verify errors are thrown at the right time Add support for video & audio calls Possibly support unreliable mode Support multiple data channels Support negotiated data channel creation