NAME
Net::WebSocket::Handshake::Client
SYNOPSIS
my $hsk = Net::WebSocket::Handshake::Client->new(
#required
uri => 'ws://haha.test',
#optional
subprotocols => [ 'echo', 'haha' ],
#optional, base 64 .. auto-created if not given
key => '..',
);
#Includes only one trailing CRLF, so you can add additional headers
my $txt = $hsk->create_header_text();
my $b64 = $hsk->get_key();
#Validates the value of the “Sec-WebSocket-Accept” header;
#throws Net::WebSocket::X::BadAccept if not.
$hsk->validate_accept_or_die($accent_value);