lib/shared_client.js
function Client() {

    logger('new Client');
    this.type = 'client';
    this.id = uuid();
    this.browser = (WebSocket.Server === undefined);
    Base.call(this);
  }
function Client() {

    logger('new Client');
    this.type = 'client';
    this.id = uuid();
    this.browser = (WebSocket.Server === undefined);
    Base.call(this);
  }
json-rpc-ws client

@param {Object} Parent object, used to find method handlers.
@param {Socket} WebSocket connection.
@extends {Base}
@constructor