Open supun19 opened 6 years ago
Hello Supun19,
Here is what is working on my side using webrtc channel. I hope this can help.
// to emit the message
webrtc.sendDirectlyToAll('channelMessage','chat', data)
// to receive the message
webrtc.on('channelMessage', function (peer, label , data) {
if(data.type === 'chat'){
// handle data.payload
}
}
Matthieu
You have to check the 'channelMessage' event
thanq you response @dcotoz and @MatthieuHPP
I want to use simple text chat with video audio chat
i use this function webrtc.sendToAll('chat', {message: "hello"});
its not received chat data but other data got
could you suggest how to do it