lib/peer/remote.js
function rxServer(val) {  // {{{2
/**
 * Called, when received "server" message as a client.
 */

  if (! (
    val.space === this.peer.space.name &&
    val.peer === this.peer.name
  )) {
    O.log.error(this, 'This is not the right peer');
    this.close();
    return;
  }

  this.rx = rxConfirm;

  this.tx({
    space: O.here.space.name,
    peer: O.here.name,
  });
  return;
}
function rxServer(val) {  // {{{2
/**
 * Called, when received "server" message as a client.
 */

  if (! (
    val.space === this.peer.space.name &&
    val.peer === this.peer.name
  )) {
    O.log.error(this, 'This is not the right peer');
    this.close();
    return;
  }

  this.rx = rxConfirm;

  this.tx({
    space: O.here.space.name,
    peer: O.here.name,
  });
  return;
}
function rxServer ( val ) { // {{{2 /**
 * Called, when received "server" message as a client.
 */ if ( ! ( val . space === this . peer . space . name && val . peer === this . peer . name ) ) { O . log . error ( this , 'This is not the right peer' ) ; this . close ( ) ; return ; } this . rx = rxConfirm ; this . tx ( { space : O . here . space . name , peer : O . here . name , } ) ; return ; }
WS {{{1 All methods are bound to "ws"
WS {{{ 1 All methods are bound to ws