matchbox icon indicating copy to clipboard operation
matchbox copied to clipboard

Zero sized messages are dropped

Open occuros opened this issue 6 months ago • 3 comments

I’m currently working on integrating bevy_matchbox into Replicon.

During testing, we noticed that zero-sized packets sent on a channel are not delivered to peers. However, Replicon requires support for such packets.

Is there a way to allow zero-sized packets to be sent without being dropped?

occuros avatar Jul 09 '25 18:07 occuros

Not what you were asking for, but you could always prepend and discard a single byte at the start of every package.

Not sure why they are dropped, perhaps it has something to do with how webrtc works. Is it the same problem on both native and web?

johanhelsing avatar Jul 09 '25 19:07 johanhelsing

Appending and removing 1 byte is what I currently do for a workaround.

I haven't tested web just yet, only native.

occuros avatar Jul 09 '25 21:07 occuros

If it works on web, then it can likely be considered a bug in webrtc-rs, and we should report it there.

johanhelsing avatar Jul 10 '25 01:07 johanhelsing