NAME
WebSocket::Handshake::Server - WebSocket Server Handshake
SYNOPSIS
use WebSocket::Handshake::Server;
my $this = WebSocket::Handshake::Server->new ||
die( WebSocket::Handshake::Server->error, "\n" );
VERSION
v0.1.0
DESCRIPTION
METHODS
as_string
Returns the server handshake as a string, meaning with its response header and possibly its body response to the client challenge if the protocole version used is an older version.
is_done
Set or get the boolean value of when the parsing of client request is done.
This method is actually a shortcut to "is_done" in WebSocket::Request.
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 client request and setting some key information such as whether the connection is using ssl and is secure, the uri, the origin, the host among others. For more on information available, check WebSocket::Request
If an error occurs, it returns undef
and sets an error that can be retrieved with the error method
Returns the current object.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
WebSocket::Server, 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.