Migration from ByteNet¶
ByteNet Max began as a ByteNet fork, but projects should use ByteNet Max's own package and documentation.
Update the dependency¶
Check the Wally package for the current version.
Update the require¶
Keep packet definitions shared¶
The familiar namespace and packet model remains:
ByteNetMax.defineNamespace("Game", function()
return {
packets = {
Example = ByteNetMax.definePacket({
value = ByteNetMax.string,
}),
},
}
end)
Review method signatures against the packet API, especially sendTo(Data, Player).
Replace manual request/response remotes¶
ByteNet Max adds queries:
Register the handler on the server with listen, then invoke it from the client with invoke.
Review data types¶
Use the ByteNet Max data type reference instead of assuming every upstream codec or API is identical.
Test both runtime directions¶
Before shipping, verify:
- Client → server packet
- Server → client packet
- Reliable and unreliable traffic you use
- Query request and response
- Listener cleanup during player or UI lifecycle changes