providers/core/core.peerconnection.js
function (dataChannel, info, event) {
        if (event.data instanceof ArrayBuffer) {
          self.dispatchEvent('onReceived', {
            'channelLabel': info.label,
            'buffer': event.data
          });
        } else if (event.data instanceof Blob) {
          self.dispatchEvent('onReceived', {
            'channelLabel': info.label,
            'binary': event.data
          });
        } else if (typeof (event.data) === 'string') {
          self.dispatchEvent('onReceived', {
            'channelLabel': info.label,
            'text': event.data
          });
        }
      }
function (dataChannel, info, event) {
        if (event.data instanceof ArrayBuffer) {
          self.dispatchEvent('onReceived', {
            'channelLabel': info.label,
            'buffer': event.data
          });
        } else if (event.data instanceof Blob) {
          self.dispatchEvent('onReceived', {
            'channelLabel': info.label,
            'binary': event.data
          });
        } else if (typeof (event.data) === 'string') {
          self.dispatchEvent('onReceived', {
            'channelLabel': info.label,
            'text': event.data
          });
        }
      }
function ( dataChannel , info , event ) { if ( event . data instanceof ArrayBuffer ) { self . dispatchEvent ( 'onReceived' , { 'channelLabel' : info . label , 'buffer' : event . data } ) ; } else if ( event . data instanceof Blob ) { self . dispatchEvent ( 'onReceived' , { 'channelLabel' : info . label , 'binary' : event . data } ) ; } else if ( typeof ( event . data ) === 'string' ) { self . dispatchEvent ( 'onReceived' , { 'channelLabel' : info . label , 'text' : event . data } ) ; } }
Default on real message prints it to console.
Default on real message prints it to console .