PHPPM\React\Server::handleConnection PHP Method

handleConnection() public method

public handleConnection ( $socket )
    public function handleConnection($socket)
    {
        stream_set_blocking($socket, 0);
        $client = $this->createConnection($socket);
        $this->emit('connection', array($client));
    }