PacketEventWrapper (Client)¶
Overview¶
{version4}
This object is a wrapper for Packet events. Packet methods and properties can be found here: Packet Networking Library. Basic events and methods are included in this documentation for convenience.
The client-side wrapper does not change any method/properties from the original besides disabling server-side methods. Server-side methods and properties of Packet (eg. OnServerEvent, FireClient) will error when called from the client.
See: Server-side PacketEventWrapper
Events¶
OnClientEvent¶
event.OnClientEvent:Connect(function(
...: any
) ... end)
Fires when :Fire* is called on the server.
Methods¶
FireServer¶
event:FireServer(
...: any
)
Fire an event to the server.
Info
The FireServer() method is simply an alias for the Fire() method for parity with the Roblox event ecosystem. Both methods work identically.