Hi everyone
I added a listener function on event easyrtcMsg and check type of messages. I wanna send a proper reply to sender of a this type message. for example:
easyrtc.events.on("easyrtcMsg",function(connectionObj, msg, socketCallback, next){
if( msg.msgType == 'type1'){
replyMessage( replyMsg1 );
else if( msg.msgType == 'type2'){
replyMessage( replyMsg2 );
}else{
easyrtc.events.defaultListeners.easyrtcMsg(connectionObj, msg, socketCallback, next);
}
});
How I can do this in EasyRTC? I really appreciate if you help me.