Kraken\Ipc\Socket\SocketListener::handleConnect PHP Method

handleConnect() public method

Handle the new connection.
public handleConnect ( )
    public function handleConnect()
    {
        $newSocket = @stream_socket_accept($this->socket);
        if ($newSocket === false) {
            $this->emit('error', [$this, new ReadException('Socket could not accept new connection.')]);
            return;
        }
        stream_set_blocking($newSocket, 0);
        $client = $this->createClient($newSocket);
        $this->emit('connect', [$this, $client]);
    }