Skip to content

Repository files navigation

ByteNet Max

Typed, buffer-based networking for Roblox—with packets for events and queries for request/response calls.

Documentation · Wally · Creator Store

What it provides

  • Typed buffer serialization for compact network payloads
  • Reliable and unreliable packets
  • Client-to-server queries with typed responses
  • Frame-batched packet traffic
  • Composable schemas for Roblox and Luau values

Install with Wally

[dependencies]
ByteNetMax = "elitriare/bytenet-max@0.2.7"

Check the Wally package for the latest published version.

Minimal example

Important

The shared namespace ModuleScript must be required on both the server and client, with the server initializing first. See Required initialization.

Define networking once in a shared ModuleScript:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ByteNetMax = require(ReplicatedStorage.Packages.ByteNetMax)

return ByteNetMax.defineNamespace("Game", function()
	return {
		packets = {
			Announcement = ByteNetMax.definePacket({
				value = ByteNetMax.string,
			}),
		},
		queries = {
			GetCoins = ByteNetMax.defineQuery({
				request = ByteNetMax.nothing,
				response = ByteNetMax.uint32,
			}),
		},
	}
end)

Require that shared module on both the server and client. See the getting started guide for the complete setup.

Documentation

The dedicated documentation covers:

License

ByteNet Max is available under the MIT License.

About

An upgraded version of ByteNet by ffrostfall that includes queries (RemoteFunctions), using buffers to send data with low memory, optimising experiences to be blazing fast!

Resources

Stars

26 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages