code: function(msg) {
          if (msg.senderName && msg.senderName === serverName) {
            isServerRegister = true;
  
            if (registerServerTimeoutId) {
              clearTimeout(registerServerTimeoutId);
            }
  
            socketState = socketStateType.OPEN;
            fireEvent("stateChange", {
              socketState: socketState,
              timeUntilReconnect: 0,
              deviceRegister: isDeviceRegister,
              serverRegister: isServerRegister,
              peerId: peerId
            });
            fireEvent("asyncReady");
  
            pushSendDataQueueHandler();
  
            if (asyncLogging) {
              if (workerId > 0) {
                Utility.asyncStepLogger(workerId + "\t Async is Ready");
              } else {
                Utility.asyncStepLogger("Async is Ready");
              }
            }
  
          } else {
            registerServer();
          }
        }
docs: *****************************************************
  P R I V A T E   M E T H O D S            *
  *****************************************************