• Register a callback for a packet type.

    Parameters

    • type: "number"

      The packet type to register for.

    • callback: ((num, info) => void)

      The callback to register.

        • (num, info): void
        • Parameters

          Returns void

    Returns void

  • Register a callback for a packet type.

    Parameters

    • type: "string"

      The packet type to register for.

    • callback: ((str, info) => void)

      The callback to register.

        • (str, info): void
        • Parameters

          Returns void

    Returns void

  • Register a callback for a packet type.

    Parameters

    • type: "keyvalue"

      The packet type to register for.

    • callback: ((key, value, info) => void)

      The callback to register.

        • (key, value, info): void
        • Parameters

          Returns void

    Returns void

Generated using TypeDoc