Protocol::WebSocket::Fast::FrameSender - low-level frame generator helper
The class helps in creation of low-level frames of a single message. It might be useful if message data is partly available and should be serialized and delivered to peer ASAP as a frame.
You cannot instantiate an object of the class direcly, it can be accessed only via Protocol::WebSocket::Fast::Parser.
Returns serialized frame with the supplied payload (in form of string or array of strings).
Set $final to a true value for the last frame to finalize the message. In this case no further send() calls are allowed.
$final
send()
If deflate is enabled then send() may generate an empty frames (except for the last frame) due to output latency. final frame flushes all accumulated compressed payload.
deflate
final
Protocol::WebSocket::Fast
Protocol::WebSocket::Fast::FrameIterator
Protocol::WebSocket::Fast::Message
Protocol::WebSocket::Fast::Parser
rfc6455
To install Protocol::WebSocket::Fast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::WebSocket::Fast
CPAN shell
perl -MCPAN -e shell install Protocol::WebSocket::Fast
For more information on module installation, please visit the detailed CPAN module installation guide.