You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
Title says it all. Currently if you are using the RateLimit function for BridgeNet2, it will block a few requests but will not adhere to your desired Invokes per second.
Here is the solution I made that fixed the issue. Replace the code at line 77 in the serverBridgePrototype connect method.
Here is proof of the issue. This is my current setup, if a request goes through it will print "Passed rate limit". If a request is caught then it will print "Hit ratelimit"
Network.ToggleTroop:Connect(function(Player, TroopID)
print("Passed rate limit")
assert(typeof(TroopID) =="string", `TroopID must be a string when attempting to equip`)
localIsEquipped, Index=IsTroopEquipped(Player, TroopID)
ifIsEquippedandIndexthenTowers:UnEquipTower(Player, TroopID, Index)
elseTowers:EquipTower(Player, TroopID)
endend)
Network.ToggleTroop:RateLimit(1, function()
print("Hit ratelimit")
end)
Here is a screenshot from the console when I'm spamming requests
As you can see by the timestamps there are streaks where all requests are blocked and streaks where they pass through.
Here is a screenshot with my solution and we can see that only 1 request is allowed every second.
I personally have little to no experience with github and have no idea how to make a commit so I thought I would raise this issue and the solution.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Title says it all. Currently if you are using the RateLimit function for BridgeNet2, it will block a few requests but will not adhere to your desired Invokes per second.
Here is the solution I made that fixed the issue. Replace the code at line 77 in the serverBridgePrototype connect method.
Here is proof of the issue. This is my current setup, if a request goes through it will print "Passed rate limit". If a request is caught then it will print "Hit ratelimit"
Here is a screenshot from the console when I'm spamming requests
As you can see by the timestamps there are streaks where all requests are blocked and streaks where they pass through.
Here is a screenshot with my solution and we can see that only 1 request is allowed every second.
I personally have little to no experience with github and have no idea how to make a commit so I thought I would raise this issue and the solution.
The text was updated successfully, but these errors were encountered: