====== adv.sendWrtcCmd() ====== call.adv.sendWrtcCmd() is used to transmit data to other end of a call using [[ixnx:wrtc:rtcgate:start|RTCgate]] signaling channel. It is intended to send small amounts of user commands and arguments to the remote client. For large amounts of data use [[ixnx:wrtc:js:api:call:adv.senddata|data channel]] instead. ===== Arguments ===== call.adv.sendWrtcCmd(data) * data - string or JSON data containing user command to send. ===== Returns ===== Nothing. Will trigger [[ixnx:wrtc:js:api:wrtc:onwrtccmd|wrtc.onWrtcCmd()]] at receiving end. ===== Example ===== call.adv.sendWrtcCmd({cmd:"yourcmd", data:"yourdata"}); ===== See also ===== [[ixnx:wrtc:js:api:wrtc:adv.sendwrtccmd|wrtc.adv.sendWrtcCmd()]] [[ixnx:wrtc:js:api:wrtc:onwrtccmd|wrtc.onWrtcCmd()]]