temp/www/build/bundle.js
/**
         * Generates uri for connection.
         *
         * @api private
         */
Generates uri for connection.
@api private
Generates uri for connection . @api private
uri() {
            let query = this.query || {};
            const schema = this.opts.secure ? "wss" : "ws";
            let port = "";
            if (this.opts.port &&
                (("wss" === schema && Number(this.opts.port) !== 443) ||
                    ("ws" === schema && Number(this.opts.port) !== 80))) {
                port = ":" + this.opts.port;
            }
            if (this.opts.timestampRequests) {
                query[this.opts.timestampParam] = yeast_1();
            }
            if (!this.supportsBinary) {
                query.b64 = 1;
            }
            const encodedQuery = parseqs.encode(query);
            const ipv6 = this.opts.hostname.indexOf(":") !== -1;
            return (schema +
                "://" +
                (ipv6 ? "[" + this.opts.hostname + "]" : this.opts.hostname) +
                port +
                this.opts.path +
                (encodedQuery.length ? "?" + encodedQuery : ""));
        }
uri ( ) { let query = this . query || { } ; const schema = this . opts . secure ? "wss" : "ws" ; let port = "" ; if ( this . opts . port && ( ( "wss" === schema && Number ( this . opts . port ) !== 443 ) || ( "ws" === schema && Number ( this . opts . port ) !== 80 ) ) ) { port = ":" + this . opts . port ; } if ( this . opts . timestampRequests ) { query [ this . opts . timestampParam ] = yeast_1 ( ) ; } if ( ! this . supportsBinary ) { query . b64 = 1 ; } const encodedQuery = parseqs . encode ( query ) ; const ipv6 = this . opts . hostname . indexOf ( ":" ) !== - 1 ; return ( schema + "://" + ( ipv6 ? "[" + this . opts . hostname + "]" : this . opts . hostname ) + port + this . opts . path + ( encodedQuery . length ? "?" + encodedQuery : "" ) ) ; }
Generates uri for connection.
Generates uri for connection .
// avoid port if default for schema // append timestamp to URI // communicate binary support capabilities