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
Sometimes, it's possible that the WebSocket frame parser will 'successfully' parse a frame but that the frame may not be valid. For instance, passing a buffer byte[] buff = new byte[2] {0x0, 0x0} will not fail but it is obviously invalid.
Using a contract or assertion library for this may be a good idea.
This should probably be implemented as a static method along with the SocketFrame.TryParse() and SocketFrame.Unmask() methods.
The text was updated successfully, but these errors were encountered:
Sometimes, it's possible that the WebSocket frame parser will 'successfully' parse a frame but that the frame may not be valid. For instance, passing a buffer
byte[] buff = new byte[2] {0x0, 0x0}
will not fail but it is obviously invalid.Using a contract or assertion library for this may be a good idea.
This should probably be implemented as a static method along with the
SocketFrame.TryParse()
andSocketFrame.Unmask()
methods.The text was updated successfully, but these errors were encountered: