The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Protocol::WebSocket::Fast::MessageIterator - WebSocket message iterator class

DESCRIPTION

The class allows developer traverse on parsed websocket messages.

You cannot instantiate an object of the class direcly, it can be accessed only via Protocol::WebSocket::Fast::Parser or Protocol::WebSocket::Fast::FrameIterator.

METHODS

next()

Returns next unvisited Protocol::WebSocket::Fast::Message parsed from receive buffer; otherwise (i.e. when end of buffer is reached) it returns undef.

get_frames()

Returns Protocol::WebSocket::Fast::FrameIterator, if there is any unread frames left. Otherwise it returns undef.

See Protocol::WebSocket::Fast::Parser for more details on switching between frame and message modes.

SEE ALSO

Protocol::WebSocket::Fast

Protocol::WebSocket::Fast::FrameIterator

Protocol::WebSocket::Fast::Message

Protocol::WebSocket::Fast::Parser

rfc6455