WebSocket::Handshake::Client - WebSocket Client Handshake
use WebSocket::Handshake::Client; my $this = WebSocket::Handshake::Client->new || die( WebSocket::Handshake::Client->error, "\n" );
v0.1.0
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.
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.
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
debug
version
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
undef
Returns the current object.
Set or get the uri for the remote server connection. This returns a URI::wss object.
Jacques Deguest <jack@deguest.jp>
perl
Copyright(c) 2021 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install WebSocket, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebSocket
CPAN shell
perl -MCPAN -e shell install WebSocket
For more information on module installation, please visit the detailed CPAN module installation guide.