WebRTC samples Send messages with datachannel

This page show how to send text messages via WebRTC datachannels.

Enter a message in one text box and press send and it will be transferred to the "remote" peer over a datachannel.

View the console to see logging.

For more information about RTCDataChannel, see Getting Started With WebRTC.

View source on GitHub