NAME

WebSocket::Extension - WebSocket Client & Server

SYNOPSIS

use WebSocket::Extension;
my $ext = WebSocket::Extension->new( 'permessage-deflate' ) ||
    die( WebSocket::Extension->error, "\n" );

VERSION

v0.1.0

DESCRIPTION

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

METHODS

See inherited methods from WebSocket::HeaderValue. Additionally this class implements the following methods:

extension

Set or get the name of the extension.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

rfc6455

rfc7692 for WebSocket compression

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.