code: function (obj) {
  			if (typeof connHandler === 'function')
  				connHandler('disconnect');
  			
  			SR.Warn('disconnected... obj: ');
  			SR.Warn(obj);
  			
  			// attempt to re-connect
  			if (typeof conn_options === 'object') {
  				removeEntry(currentEntry);
  				currentEntry = undefined;
  				SR.Warn('re-connecting websocket with options');
  				SR.Warn(conn_options);
  				SR.setSocketServer(conn_options);
  			}
  		}
docs: disconnect event