Start typing to search packages!
network
By @krxzy-zion-code
Roblox
Mirrored from WallyNetwork
RemoteEvent and RemoteFunction helper library for Roblox.
Rate limiting
Server requests can be limited per player with a cooldown. Rate-limited requests
are ignored and reported through OnRateLimited:
Network.SetRateLimit("BuyItem", 0.5)
Network.OnRateLimited(function(name, player, retryAfter)
print(player.Name, name, retryAfter)
end)
This applies to incoming RemoteEvents connected through OnEvent and
RemoteFunctions connected through OnServerInvoke. Remove a limit with
Network.SetRateLimit("BuyItem", nil).
Event-backed functions
Function calls never create Roblox RemoteFunction instances. The normal
function API uses paired RemoteEvents and NetworkSignal internally:
-- Server
Network.OnServerInvoke("GetScore", function(player)
return Scores[player]
end)
-- Client
local score = Network.InvokeServer("GetScore")
The reverse direction uses OnClientInvoke and InvokeClient. The explicit
OnCustom* and InvokeCustom* names remain available as aliases. Server
invokes use the same rate limit configured with SetRateLimit.
Wally package: krxzy-zion-code/network
Install
Add this to your project's wally.toml under [dependencies]:
Network = "krxzy-zion-code/network@^0.1.3"
Then run:
wally install
Publish
Run wally publish from this directory.
Author: toxixsuff
Package Details
Install command (Click to copy)
Version
0.1.3
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
