WebSocket::Handshake::Server - WebSocket Server Handshake
my $this = WebSocket::Handshake::Server->new ||
die( WebSocket::Handshake::Server->error, "\n" );
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.
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.
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
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.
Jacques Deguest <firstname.lastname@example.org>
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.
To install WebSocket, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.