NAME
WebSocket::Handshake::Client - WebSocket Client Handshake
SYNOPSIS
use WebSocket::Handshake::Client;
my $this = WebSocket::Handshake::Client->new( uri => "ws://localhost:8181/some/where" ) ||
die( WebSocket::Handshake::Client->error, "\n" );
VERSION
v0.1.0
DESCRIPTION
METHODS
as_string
Returns the client handshake as a string, meaning with its request header and possibly its body request to the server containing the challenge if the protocole version used is an older version.
is_done
Set or get the boolean value of when the parsing of server response is done.
This method is actually a shortcut to "is_done" in WebSocket::Response.
make_frame
Creates a new WebSocket::Frame object passing it any argument provided. On top of those arguments provided, this method will also set the debug
and version
properties
parse
Initiate the parsing of the server response.
If an error occurs, it returns undef
and sets an error that can be retrieved with the error method
Returns the current object.
uri
Set or get the uri for the remote server connection. This returns a URI::wss object.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
WebSocket::Client, WebSocket::Handshake
COPYRIGHT & LICENSE
Copyright(c) 2021-2023 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.