WebSocket::Handshake::Server - WebSocket Server Handshake
use WebSocket::Handshake::Server; my $this = WebSocket::Handshake::Server->new || die( WebSocket::Handshake::Server->error, "\n" );
v0.1.0
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
debug
version
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
undef
Returns the current object.
Jacques Deguest <jack@deguest.jp>
WebSocket::Server, WebSocket::Handshake
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.
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.