{"id":"krxzy-zion-code/network","name":"network","scope":"krxzy-zion-code","platform":"roblox","description":"Roblox RemoteEvent and RemoteFunction helper library.","version":"0.1.3","latest":"0.1.3","versions":["0.1.0","0.1.1","0.1.2","0.1.3"],"license":"MIT","licenseRating":"safe","licenseCaveats":["The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{},"integrity":"5569d6d43800a13d445a727190e025307d3309e48af0f07c130946252c9ba189","likes":0,"downloads":0,"install":"forest install krxzy-zion-code/network","url":"https://forest.dev/p/roblox/krxzy-zion-code/network","files":"https://api.forest.dev/ai/package/roblox/krxzy-zion-code/network/files","readme":"# Network\n\nRemoteEvent and RemoteFunction helper library for Roblox.\n\n## Rate limiting\n\nServer requests can be limited per player with a cooldown. Rate-limited requests\nare ignored and reported through `OnRateLimited`:\n\n```lua\nNetwork.SetRateLimit(\"BuyItem\", 0.5)\nNetwork.OnRateLimited(function(name, player, retryAfter)\n\tprint(player.Name, name, retryAfter)\nend)\n```\n\nThis applies to incoming `RemoteEvent`s connected through `OnEvent` and\n`RemoteFunction`s connected through `OnServerInvoke`. Remove a limit with\n`Network.SetRateLimit(\"BuyItem\", nil)`.\n\n## Event-backed functions\n\nFunction calls never create Roblox `RemoteFunction` instances. The normal\nfunction API uses paired `RemoteEvent`s and `NetworkSignal` internally:\n\n```lua\n-- Server\nNetwork.OnServerInvoke(\"GetScore\", function(player)\n\treturn Scores[player]\nend)\n\n-- Client\nlocal score = Network.InvokeServer(\"GetScore\")\n```\n\nThe reverse direction uses `OnClientInvoke` and `InvokeClient`. The explicit\n`OnCustom*` and `InvokeCustom*` names remain available as aliases. Server\ninvokes use the same rate limit configured with `SetRateLimit`.\n\nWally package: `krxzy-zion-code/network`\n\n## Install\n\nAdd this to your project's `wally.toml` under `[dependencies]`:\n\n```toml\nNetwork = \"krxzy-zion-code/network@^0.1.3\"\n```\n\nThen run:\n\n```powershell\nwally install\n```\n\n## Publish\n\nRun `wally publish` from this directory.\n\nAuthor: toxixsuff\n","readmeTruncated":false}