dist/client/lance-gg.js
/**
     * Called when connection is deemed open.
     *
     * @api public
     */
Called when connection is deemed open.
@api public
Called when connection is deemed open . @api public
onOpen() {
      debug$3("socket open");
      this.readyState = "open";
      Socket.priorWebsocketSuccess = "websocket" === this.transport.name;
      this.emit("open");
      this.flush();
      if (
        "open" === this.readyState &&
        this.opts.upgrade &&
        this.transport.pause
      ) {
        debug$3("starting upgrade probes");
        let i = 0;
        const l = this.upgrades.length;
        for (; i < l; i++) {
          this.probe(this.upgrades[i]);
        }
      }
    }
onOpen ( ) { debug$3 ( "socket open" ) ; this . readyState = "open" ; Socket . priorWebsocketSuccess = "websocket" === this . transport . name ; this . emit ( "open" ) ; this . flush ( ) ; if ( "open" === this . readyState && this . opts . upgrade && this . transport . pause ) { debug$3 ( "starting upgrade probes" ) ; let i = 0 ; const l = this . upgrades . length ; for ( ; i < l ; i ++ ) { this . probe ( this . upgrades [ i ] ) ; } } }
Called when connection is deemed open.
Called when connection is deemed open .
// we check for `readyState` in case an `open` // listener already closed the socket