temp/www/build/bundle.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$1.priorWebsocketSuccess &&
                this.transports.indexOf("websocket") !== -1) {
                transport = "websocket";
            }
            else if (0 === this.transports.length) {
                this.setTimeoutFn(() => {
                    this.emitReserved("error", "No transports available");
                }, 0);
                return;
            }
            else {
                transport = this.transports[0];
            }
            this.readyState = "opening";
            try {
                transport = this.createTransport(transport);
            }
            catch (e) {
                this.transports.shift();
                this.open();
                return;
            }
            transport.open();
            this.setTransport(transport);
        }
open ( ) { let transport ; if ( this . opts . rememberUpgrade && Socket$1 . priorWebsocketSuccess && this . transports . indexOf ( "websocket" ) !== - 1 ) { transport = "websocket" ; } else if ( 0 === this . transports . length ) { this . setTimeoutFn ( ( ) => { this . emitReserved ( "error" , "No transports available" ) ; } , 0 ) ; return ; } else { transport = this . transports [ 0 ] ; } this . readyState = "opening" ; try { transport = this . createTransport ( transport ) ; } catch ( 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)