UNPKG

rtc

Version:

Build WebRTC conferencing applications with easy using rtc.io. This package provides a super-friendly entry point for working with WebRTC, dive into underling rtc.io modules for more configuration and customization opportunities

14 lines (13 loc) 278 B
<html> <head> <title>rtc.io simple chat</title> </head> <body> <script src="../dist/rtc.min.js"></script> <script> RTC({ constraints: null }).on('channel:opened:chat', function(id, dc) { console.log('chat channel opened with peer: ' + id, dc); }); </script> </body> </html>