%OPTS is:
deflate_max_window_bits
server_max_window_bits
inflate_max_window_bits
client_max_window_bits
deflate_no_context_takeover
client_no_context_takeover
server_no_context_takeover
compress()
Creates an unfragmented, compressed message. The message will be an instance of Net::WebSocket::Message.
FRAME_TYPE can be either text or binary (for Net::WebSocket’s default frame classes) or full package names (e.g., to use a custom frame class).
text
binary
This method cannot be called while a streamer object has yet to create its final frame.
NOTE: This function alters PAYLOAD.
Returns an instance of Net::WebSocket::PMCE::deflate::Data::Streamer based on this object.
Decompresses the given string and returns the result.
NOTE: This function alters COMPRESSED_PAYLOAD, such that it’s probably not useful afterward.
To install Net::WebSocket, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::WebSocket
CPAN shell
perl -MCPAN -e shell install Net::WebSocket
For more information on module installation, please visit the detailed CPAN module installation guide.