Skip to main content
PacketArgs<T> = undefined extends T ? [data?: T, options?: ChannelOptions] : [data: T, options?: ChannelOptions]
Defined in: modules/network/src/shared/packet.ts:107 Arguments of the typed send methods after the definition: the payload, which can be left out when it accepts undefined (a packet without payload is void), then the options.

Type Parameters

T

T Payload type of the packet.