@mothepro/ez-rtc
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mothepro/ez-rtc

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

79 kB

Total Files

23

Last publish

Collaborators

  • mothepro