index.js
// open a subscription on the server, callback should handle on ready and nosub
open a subscription on the server, callback should handle on ready and nosub
open a subscription on the server callback should handle on ready and nosub
subscribe(name, params, callback) {
    var self = this;
    var id = self._getNextId();
    if (callback) {
      self._callbacks[id] = callback;
    }
    self._send({
      msg    : "sub",
      id     : id,
      name   : name,
      params : params
    });
    return id;
  }
subscribe ( name , params , callback ) { var self = this ; var id = self . _getNextId ( ) ; if ( callback ) { self . _callbacks [ id ] = callback ; } self . _send ( { msg : "sub" , id : id , name : name , params : params } ) ; return id ; }
open a subscription on the server, callback should handle on ready and nosub
open a subscription on the server callback should handle on ready and nosub