{"id":"yojitheog/bytenet-max","name":"bytenet-max","scope":"yojitheog","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.2.9","latest":"0.2.9","versions":["0.2.9"],"license":"MIT","licenseRating":"safe","licenseCaveats":["License identified from the packaged LICENSE file; the manifest declared none."],"licenseVerified":true,"dependencies":{},"integrity":"48b8359e5ef440acf496cc93257dbe0d645cebd3fcd5bf5dd0cadf3a25b832bf","likes":0,"downloads":0,"install":"forest install yojitheog/bytenet-max","url":"https://forest.dev/p/roblox/yojitheog/bytenet-max","files":"https://api.forest.dev/ai/package/roblox/yojitheog/bytenet-max/files","readme":"<div align=\"center\">\r\n\r\n# ByteNet Max\r\n\r\nTyped, buffer-based networking for Roblox—with packets for events and queries for request/response calls.\r\n\r\n[Documentation](https://elitriare.github.io/ByteNet-Max/) · [Wally](https://wally.run/package/elitriare/bytenet-max) · [Creator Store](https://create.roblox.com/store/asset/81428213632345/ByteNet-Max)\r\n\r\n</div>\r\n\r\n## What it provides\r\n\r\n- Typed buffer serialization for compact network payloads\r\n- Reliable and unreliable packets\r\n- Client-to-server queries with typed responses\r\n- Frame-batched packet traffic\r\n- Composable schemas for Roblox and Luau values\r\n\r\n## Install with Wally\r\n\r\n```toml\r\n[dependencies]\r\nByteNetMax = \"elitriare/bytenet-max@0.2.7\"\r\n```\r\n\r\nCheck the [Wally package](https://wally.run/package/elitriare/bytenet-max) for the latest published version.\r\n\r\n## Minimal example\r\n\r\n> [!IMPORTANT]\r\n> The shared namespace ModuleScript must be required on both the server and client, with the server initializing first. See [Required initialization](https://elitriare.github.io/ByteNet-Max/getting-started/initialization/).\r\n\r\nDefine networking once in a shared ModuleScript:\r\n\r\n```lua\r\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\r\nlocal ByteNetMax = require(ReplicatedStorage.Packages.ByteNetMax)\r\n\r\nreturn ByteNetMax.defineNamespace(\"Game\", function()\r\n\treturn {\r\n\t\tpackets = {\r\n\t\t\tAnnouncement = ByteNetMax.definePacket({\r\n\t\t\t\tvalue = ByteNetMax.string,\r\n\t\t\t}),\r\n\t\t},\r\n\t\tqueries = {\r\n\t\t\tGetCoins = ByteNetMax.defineQuery({\r\n\t\t\t\trequest = ByteNetMax.nothing,\r\n\t\t\t\tresponse = ByteNetMax.uint32,\r\n\t\t\t}),\r\n\t\t},\r\n\t}\r\nend)\r\n```\r\n\r\nRequire that shared module on both the server and client. See the [getting started guide](https://elitriare.github.io/ByteNet-Max/getting-started/installation/) for the complete setup.\r\n\r\n## Documentation\r\n\r\nThe dedicated documentation covers:\r\n\r\n- [Your first packet](https://elitriare.github.io/ByteNet-Max/getting-started/first-packet/)\r\n- [Your first query](https://elitriare.github.io/ByteNet-Max/getting-started/first-query/)\r\n- [Packet API](https://elitriare.github.io/ByteNet-Max/api/packet/)\r\n- [Query API](https://elitriare.github.io/ByteNet-Max/api/query/)\r\n- [Data types](https://elitriare.github.io/ByteNet-Max/api/data-types/)\r\n- [Security and limits](https://elitriare.github.io/ByteNet-Max/guides/security/)\r\n\r\n## License\r\n\r\nByteNet Max is available under the [MIT License](LICENSE).\r\n","readmeTruncated":false}