WebSocket::Extension - WebSocket Client & Server
use WebSocket::Extension; my $ext = WebSocket::Extension->new( 'permessage-deflate' ) || die( WebSocket::Extension->error, "\n" );
v0.1.0
This class represents a WebSocket extension with its name and optional parameters. This class inherits from WebSocket::HeaderValue, which is used to parse and handle HTTP header values with parameters.
Examples:
Sec-WebSocket-Extensions: deflate-stream Sec-WebSocket-Extensions: mux; max-channels=4; flow-control, deflate-stream Sec-WebSocket-Extensions: private-extension
See inherited methods from WebSocket::HeaderValue. Additionally this class implements the following methods:
Set or get the name of the extension.
Jacques Deguest <jack@deguest.jp>
rfc6455
rfc7692 for WebSocket compression
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.