code: function () {
          stopHeartBeatInterval(ortc);
  
          if (isConnecting) {
              delegateExceptionCallback(ortc, 'Unable to connect');
          }
  
          isConnecting = true;
  
          delegateReconnectingCallback(ortc);
  
          reconnectStartedAt = new Date().getTime();
  
          if (clusterUrl && clusterUrl != null) {
              clusterConnection();
          }
          else {
              ortc.sockjs = createSocketConnection(url);
          }
      }
docs: /*
  Reconnects the socket.