temp/www/build/bundle.js
/**
         * Adds event listeners to the socket
         *
         * @api private
         */
Adds event listeners to the socket
@api private
Adds event listeners to the socket @api private
addEventListeners() {
            this.ws.onopen = () => {
                if (this.opts.autoUnref) {
                    this.ws._socket.unref();
                }
                this.onOpen();
            };
            this.ws.onclose = this.onClose.bind(this);
            this.ws.onmessage = ev => this.onData(ev.data);
            this.ws.onerror = e => this.onError("websocket error", e);
        }
addEventListeners ( ) { this . ws . onopen = ( ) => { if ( this . opts . autoUnref ) { this . ws . _socket . unref ( ) ; } this . onOpen ( ) ; } ; this . ws . onclose = this . onClose . bind ( this ) ; this . ws . onmessage = ev => this . onData ( ev . data ) ; this . ws . onerror = e => this . onError ( "websocket error" , e ) ; }
Adds event listeners to the socket
 @api private
Adds event listeners to the socket @api private