Net/Notifier/WebSocket/Handshake.php
protected function getAccept($key)
    {
        $accept = $key . self::GUID;
        $accept = sha1($accept, true);
        $accept = base64_encode($accept);
        return $accept;
    }
protected function getAccept($key)
    {
        $accept = $key . self::GUID;
        $accept = sha1($accept, true);
        $accept = base64_encode($accept);
        return $accept;
    }
protected function getAccept ( $ key ) { $ accept = $ key . self :: GUID ; $ accept = sha1 ( $ accept , true ) ; $ accept = base64_encode ( $ accept ) ; return $ accept ; }
Gets the accept header value for this handshake

The 20-character string is derived through the following:

1. start with the key string
2. append the string 258EAFA5-E914-47DA-95CA-C5AB0DC85B11
3. take the sha1() of the resulting string
4. base-64 encode the sha1 result

See section 4.2.2 item 5 subitem 4 of RFC 6455 for further details.

@param string $key the key from which to generate the accept hash.

@return string the accept hash.
Gets the accept header value for this handshake