PacketEventWrapper (Server)¶
Overview¶
{version4}
This object is a wrapper for Packet events. Packet objects come with several properties and methods that are not outlined in this documentation, and can be found here: Packet Networking Library.
This documentation will only show methods/properties that have been wrapped by the framework to add support for framework-specific objects.
Client-side methods and properties of Packet (eg. OnClientEvent, FireServer) will error when called from the server.
See: Client-side PacketEventWrapper
Events¶
OnServerEvent¶
event.OnServerEvent:Connect(function(
playerObject: Skeptic.PlayerObject,
...: any
) ... end)
Fires when a client calls event:FireServer(...).
Methods¶
FireClient¶
event:FireClient(
player: Player | Skeptic.PlayerObject,
...: any
)
Fire an event to a specific client.
FireClients¶
event:FireClients(
players: { Player | Skeptic.PlayerObject },
...: any
)
Fire an event to a list of clients.
FireAllClients¶
event:FireAllClients(
...: any
)
Fire an event to all clients loaded in the server.
FireAllExcept¶
event:FireAllExcept(
player: Player | Skeptic.PlayerObject,
...: any
)
Fire an event to all clients except the one specified.