You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment there is no way to decode binary frames (opcode 2) which is why I had to import the code into my project. Perhaps there should be a way to decode the binary frames?
I am using this code:
if ($this->_message->getOpcode() == Frame::OP_BINARY) {
$message = zlib_decode($message);
}
however, this won't work with all encodings.
The text was updated successfully, but these errors were encountered:
I haven't used binary frames in practice yet and only understand the differences at the protocol level. I know browsers handle two types, blob and byte stream, but I'm not sure of their practical usages. I'm not sure how to code to handle all scenarios. Do you have any suggestions?
At the moment there is no way to decode binary frames (opcode 2) which is why I had to import the code into my project. Perhaps there should be a way to decode the binary frames?
I am using this code:
however, this won't work with all encodings.
The text was updated successfully, but these errors were encountered: