@rbxts/fletchette
    Preparing search index...

    Function packet

    • Create a Packet that intelligently chooses between signal,request, and property packets based on the type of T.

      Type Parameters

      • T = unknown

      Parameters

      • Optionaloptions: { batchIntervalMs?: number; initialValue?: T; isUnreliable?: boolean }

        Object containing initialValue and isUnreliable

      • Optionalmeta: Many<
            SerializerMetadata<
                Parameters<T extends Callback ? T<T> : (value: T) => void>,
            >,
        >

        Metadata for serialization

      • Optionalname: Caller<"text">
      • Optionaluuid: Caller<"uuid">
      • OptionalreturnType: Generic<ReturnType<T>, "text">

        The return type of the callback. If "void" or undefined, a SignalPacket is created. Otherwise, a RequestPacket is created.

      Returns Packet<T>

      A Packet of type T