protected function configureSocket(): void
    {
        $socket = new SocketServer('127.0.0.1:8337', $this->loop);
        $output = $this->output;

        // Here we will pass the callback that will handle incoming data to the console
        // and we can log it out however we want. We will just write it out using an
        // implementation of a consoles OutputInterface which should perform fine.
        $this->onIncoming($socket, function ($data) use ($output) {
            $output->write($data);
        });
    }
protected function configureSocket(): void
    {
        $socket = new SocketServer('127.0.0.1:8337', $this->loop);
        $output = $this->output;

        // Here we will pass the callback that will handle incoming data to the console
        // and we can log it out however we want. We will just write it out using an
        // implementation of a consoles OutputInterface which should perform fine.
        $this->onIncoming($socket, function ($data) use ($output) {
            $output->write($data);
        });
    }
protected function configureSocket ( ) : void { $ socket = new SocketServer ( '127.0.0.1:8337' , $ this -> loop ) ; $ output = $ this -> output ; // Here we will pass the callback that will handle incoming data to the console // and we can log it out however we want. We will just write it out using an // implementation of a consoles OutputInterface which should perform fine. $ this -> onIncoming ( $ socket , function ( $ data ) use ( $ output ) { $ output -> write ( $ data ) ; } ) ; }
Configure the given socket server.

@return void
Configure the given socket server .