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 you only want to unpack 3 (for example) objects from a stream and stop unpacking after that many, it appears the current StreamProtocolHandler will continue unpacking forever, vs unpacking 3 and then stopping. It'd be nice to be able to restrict it to a given amount of unpacks (and default to infinite to retain the existing behavior)
The text was updated successfully, but these errors were encountered:
Interesting. I wonder if this might be better handled outside of Suitcase? Presumably, once you have received N packet callbacks, you could just stop feeding in bytes to feed().
What would "stopping" after 3 frames look like? How would the behavior of feed() change?
Sometimes you only want to unpack 3 (for example) objects from a stream and stop unpacking after that many, it appears the current
StreamProtocolHandler
will continue unpacking forever, vs unpacking 3 and then stopping. It'd be nice to be able to restrict it to a given amount of unpacks (and default to infinite to retain the existing behavior)The text was updated successfully, but these errors were encountered: