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
{{ message }}
Repository navigation
A default behaviour for splitting a message into multiple packets? #175
I tried sending about 4 KB of data in a single message, and it never got through. The problem is the size; small messages are guaranteed to get through. I'd like to see some kind of build-in mechanism for splitting and sending messages in multiple batches without adding that functionality on top.
Hi! I think a streaming feature would be a great addition to the library. For this kind of data, you really don't want to drop all packets on the wire at once; using congestion control is a much better approach.
I’ve actually implemented a version of this in my fork (https://github.com/megalithos/Riptide) that handles streaming for things like 1MB files quite fast. It’s currently working well in production for me. The code could still be improved, but I’d be happy to send over a PR if you’re interested in using it as a starting point or an experimental preview.
I implemented Riptide into my ONI Together mod for my LAN implementation, my method was to basically limit the packet size to about 1000 bytes then taking a lil off for any additional overhead and then chunk the packets. Frequently ran into InsufficientCapacityException before doing this.
So this would be a really cool feature to have natively
Activity
Artromskiy commentedon Oct 7, 2025
Right now I'm just reinventing the wheel
megalithos commentedon Jan 28, 2026
Hi! I think a streaming feature would be a great addition to the library. For this kind of data, you really don't want to drop all packets on the wire at once; using congestion control is a much better approach.
I’ve actually implemented a version of this in my fork (https://github.com/megalithos/Riptide) that handles streaming for things like 1MB files quite fast. It’s currently working well in production for me. The code could still be improved, but I’d be happy to send over a PR if you’re interested in using it as a starting point or an experimental preview.
Lyraedan commentedon Mar 27, 2026
I implemented Riptide into my ONI Together mod for my LAN implementation, my method was to basically limit the packet size to about 1000 bytes then taking a lil off for any additional overhead and then chunk the packets. Frequently ran into InsufficientCapacityException before doing this.
So this would be a really cool feature to have natively