bengreenier / webrtc-unity-plugin

Cross-platform Webrtc support for Unity apps ☁🎲
108 stars 13 forks source link

How to send data #14

Closed nav-cng closed 3 years ago

nav-cng commented 4 years ago

I'm new to webRTC, could you please let me know how to send simple string data. I'm able to send video to another peer but couldn't figure out how to data

bengreenier commented 3 years ago

Hello,

You should be able to use WebrtcPeerEvents.AddDataChannel() and WebrtcPeerEvents.SendDataViaDataChannel to send string data over a data channel.