Ratchet\WebSocket\Version\RFC6455::sign PHP Method

sign() public method

Used when doing the handshake to encode the key, verifying client/server are speaking the same language
public sign ( string $key ) : string
$key string
return string
    public function sign($key)
    {
        return base64_encode(sha1($key . static::GUID, true));
    }