temp/www/build/bundle.js
/**
         * Closes the connection.
         *
         * @api public
         */
Closes the connection.
@api public
Closes the connection . @api public
close() {
            const close = () => {
                this.onClose("forced close");
                this.transport.close();
            };
            const cleanupAndClose = () => {
                this.off("upgrade", cleanupAndClose);
                this.off("upgradeError", cleanupAndClose);
                close();
            };
            const waitForUpgrade = () => {
                this.once("upgrade", cleanupAndClose);
                this.once("upgradeError", cleanupAndClose);
            };
            if ("opening" === this.readyState || "open" === this.readyState) {
                this.readyState = "closing";
                if (this.writeBuffer.length) {
                    this.once("drain", () => {
                        if (this.upgrading) {
                            waitForUpgrade();
                        }
                        else {
                            close();
                        }
                    });
                }
                else if (this.upgrading) {
                    waitForUpgrade();
                }
                else {
                    close();
                }
            }
            return this;
        }
close ( ) { const close = ( ) => { this . onClose ( "forced close" ) ; this . transport . close ( ) ; } ; const cleanupAndClose = ( ) => { this . off ( "upgrade" , cleanupAndClose ) ; this . off ( "upgradeError" , cleanupAndClose ) ; close ( ) ; } ; const waitForUpgrade = ( ) => { this . once ( "upgrade" , cleanupAndClose ) ; this . once ( "upgradeError" , cleanupAndClose ) ; } ; if ( "opening" === this . readyState || "open" === this . readyState ) { this . readyState = "closing" ; if ( this . writeBuffer . length ) { this . once ( "drain" , ( ) => { if ( this . upgrading ) { waitForUpgrade ( ) ; } else { close ( ) ; } } ) ; } else if ( this . upgrading ) { waitForUpgrade ( ) ; } else { close ( ) ; } } return this ; }
Closes the connection.
Closes the connection .
// wait for upgrade to finish since we can't send packets while pausing a transport