-
Notifications
You must be signed in to change notification settings - Fork 18
opcodes are incorrect #70
Comments
Actually I'm just realizing the inaccuracies are a bit larger than that:
(I don't have the capability right now to modify my stack to send true continuation frames with finBit=0, so I can't verify if the finBit is parsing correctly or not.) |
Yeah, the entire frame, including the metadata like opcode, comes from the Firefox API we're using to read websockets. We pretty much only map that to a string. I can't really give any info on the Firefox API because I haven't been that deep. Let's try pinging @bakulf, he seems knowledgeable on the matter. |
Can I have a testcase? I would like to test it locally. @esphen, thanks. |
Here's a quick demonstration server in NodeJS, if that helps. Sorry for the messy code; threw it together on lunch break. https://gist.github.com/tdhsmith/8e71aba02c684f549cdec05761e6e87b You'll need to install Here's what I see: Server
(note that the ordering of the last few is off slightly due to when I'm calling the log commands relative to the actual message queue) WireSharkRaw capture file is available in the gist above.websocket-monitor |
My connections seem to have incorrectly flagged opcodes/frame types. All of the outgoing frames are marked TEXT (opcode
0x1
) and all the incoming frames are marked CONTINUATION (opcode0x0
), regardless of ground truth.Here are the same 4 frames, shown first in the socket monitor and then in wireshark:
As seen in the right column, their true values are TEXT, TEXT, TEXT, BINARY, which was confirmed by dissection as well.
I understand it is likely an underlying issue and not one with this package itself, but I wanted to file the issue while I was dealing with it to investigate later. (Would this again be stemming from the SDK or from something closer to FF internals?)
The text was updated successfully, but these errors were encountered: