public function startHandshake(
        $host,
        $port,
        $resource = '/',
        array $protocols = array()
    ) {
        $this->handshakeNonce = $this->getNonce();

        $handshake = new Net_Notifier_WebSocket_Handshake();

        $request = $handshake->start(
            $host,
            $port,
            $this->handshakeNonce,
            $resource,
            $protocols
        );

        $this->send($request);

        $this->state = self::STATE_CONNECTING;
    }