Subject: | Handling "false" frames in ->on_read |
Net::Async::WebSocket::Protocol->on_read does this:
while( my $frame = $framebuffer->next ) {
...
}
however that's just receiving arbitrary strings (or bytes, for binary frames - minor encoding issues with Protocol::WebSocket aside).
Suspect it should read more like this:
while( defined( my $frame = $framebuffer->next ) ) {
...
}
but will run through some more tests to see how well this ties in with the frame type handling (ping/pong etc.).
cheers,
Tom