protected function ready()
    {
        if ($this->emittedReady) {
            return false;
        }

        $this->logger->info('client is ready');
        $this->emit('ready', [$this]);

        foreach ($this->unparsedPackets as $parser) {
            $parser();
        }
    }
protected function ready()
    {
        if ($this->emittedReady) {
            return false;
        }

        $this->logger->info('client is ready');
        $this->emit('ready', [$this]);

        foreach ($this->unparsedPackets as $parser) {
            $parser();
        }
    }
protected function ready ( ) { if ( $ this -> emittedReady ) { return false ; } $ this -> logger -> info ( 'client is ready' ) ; $ this -> emit ( 'ready' , [ $ this ] ) ; foreach ( $ this -> unparsedPackets as $ parser ) { $ parser ( ) ; } }
Emits ready if it has not been emitted already.

@return void
Emits ready if it has not been emitted already .