Skip to main content

🧊ProNet.Options

ProNet.Options is a container class used to represent a table that holds additional information given to a new signal.

Example:

🟩Server:

--Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")

--Dependencies
local ProNet = require(ReplicatedStorage.ProNet)

local options : ProNet.Options = {
signalType = ProNet.SignalType.Event,
protected = false,
requestLimit = 5,
requestResetTime = 3
}

local testSignal : ProNet.Signal = ProNet.newSignal("TestSignal", options)

Options List:

NameTypeDescriptionDefault
signalTypeProNet.SignalTypeThe type of server-client connection you want to createProNet.SignalType.Event
protectedbooleanIf the data being moved between server-client should be hashed or notfalse
requestLimitnumberThe amount of requests that are allowed via this connection per second-1
requestResetTimenumberOnly works if the requestLimit > 0. Changes the time gap between of the request limits in seconds1