function writeToSocket(rxDatabase, changeEvent) {
  if (rxDatabase.multiInstance && !changeEvent.isIntern() && rxDatabase.broadcastChannel) {
    var sendOverChannel = {
      cE: changeEvent.toJSON(),
      storageToken: rxDatabase.storageToken
    };
    return rxDatabase.broadcastChannel.postMessage(sendOverChannel).then(function () {
      return true;
    });
  } else return Promise.resolve(false);
}
/**
 * writes the changeEvent to the broadcastChannel
 */
writes the changeEvent to the broadcastChannel
writes the changeEvent to the broadcastChannel
function writeToSocket(rxDatabase, changeEvent) {
  if (rxDatabase.multiInstance && !changeEvent.isIntern() && rxDatabase.broadcastChannel) {
    var sendOverChannel = {
      cE: changeEvent.toJSON(),
      storageToken: rxDatabase.storageToken
    };
    return rxDatabase.broadcastChannel.postMessage(sendOverChannel).then(function () {
      return true;
    });
  } else return Promise.resolve(false);
}
function writeToSocket ( rxDatabase , changeEvent ) { if ( rxDatabase . multiInstance && ! changeEvent . isIntern ( ) && rxDatabase . broadcastChannel ) { var sendOverChannel = { cE : changeEvent . toJSON ( ) , storageToken : rxDatabase . storageToken } ; return rxDatabase . broadcastChannel . postMessage ( sendOverChannel ) . then ( function ( ) { return true ; } ) ; } else return Promise . resolve ( false ) ; }
writes the changeEvent to the broadcastChannel
writes the changeEvent to the broadcastChannel