dist/client/lance-gg.js
/**
     * Initializes transport to use and starts probe.
     *
     * @api private
     */
Initializes transport to use and starts probe.
@api private
Initializes transport to use and starts probe . @api private
open() {
      let transport;
      if (
        this.opts.rememberUpgrade &&
        Socket.priorWebsocketSuccess &&
        this.transports.indexOf("websocket") !== -1
      ) {
        transport = "websocket";
      } else if (0 === this.transports.length) {
        const self = this;
        setTimeout(function() {
          self.emit("error", "No transports available");
        }, 0);
        return;
      } else {
        transport = this.transports[0];
      }
      this.readyState = "opening";
      try {
        transport = this.createTransport(transport);
      } catch (e) {
        debug$3("error while creating transport: %s", e);
        this.transports.shift();
        this.open();
        return;
      }
      transport.open();
      this.setTransport(transport);
    }
open ( ) { let transport ; if ( this . opts . rememberUpgrade && Socket . priorWebsocketSuccess && this . transports . indexOf ( "websocket" ) !== - 1 ) { transport = "websocket" ; } else if ( 0 === this . transports . length ) { const self = this ; setTimeout ( function ( ) { self . emit ( "error" , "No transports available" ) ; } , 0 ) ; return ; } else { transport = this . transports [ 0 ] ; } this . readyState = "opening" ; try { transport = this . createTransport ( transport ) ; } catch ( e ) { debug$3 ( "error while creating transport: %s" , e ) ; this . transports . shift ( ) ; this . open ( ) ; return ; } transport . open ( ) ; this . setTransport ( transport ) ; }
Initializes transport to use and starts probe.
Initializes transport to use and starts probe .
// Emit error on next tick so it can be listened to // Retry with the next transport if the transport is disabled (jsonp: false)