The function signature for the signal
Create a SignalPacket with a unique id. Metadata can be provided to specify how the data should be serialized.
Unique identifier for the signal
Optional
isUnreliable: booleanWhether the signal should be unreliable. Default is false.
Optional
meta: Many<SerializerMetadata<Parameters<T>>>Metadata for serialization
Readonly
classClass name of the packet, used for debugging purposes.
Readonly
idUnique identifier for the signal
RemoteEvent used to send the signal
Serializer for the data being sent by the signal
Readonly
virtualSet of virtual handlers that can be used to handle the signal on the client
Readonly
virtualSet of virtual handlers that can be used to handle the signal on the server
Cleans up any resources used by the packet.
Connect a server-side handler to the signal. Used by the server to listen for data from the client. Hence, this function should only be called on a server environment.
The function to call when the signal is fired
Connect a client-side handler to the signal. Used by the client to listen for data from the server. Hence, this function should only be called on a client environment.
The function to call when the signal is fired
The connection object
Fire the signal to all players. Used by the server to send data to all clients.
The data to send
Fire the signal to a specific player. Used by the server to send data to a client.
The player to send the signal to
The data to send
Fire the signal to all players except one. Used by the server to send data to all clients except one.
The player to exclude
The data to send
Fire the signal to a list of players. Used by the server to send data to a specific group of clients.
The list of players to send the signal to
The data to send
Fire the signal to all players in a radius. Used by the server to send data to all clients within a certain radius.
The position to center the radius around
The radius to send the signal to
The data to send
Inform the server of an event. Used by the client to send data to the server.
The data to send
SignalPacket is a wrapper around RemoteEvent that provides a type-safe way to send data between server and client.