Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "p2p/packets/Packet"

Index

Type aliases

PacketHeader

PacketHeader: object

Type declaration

  • id: string

    An identifer for the packet which must be unique for a given socket.

  • Optional reqId?: undefined | string

    The id of the received packet to which this packet is responding.

ResponseType

ResponseType: PacketType | PacketType[] | undefined

Functions

isPacket

  • isPacket(val: any): boolean

isPacketInterface

  • isPacketInterface(obj: any): boolean

isPacketType

  • isPacketType(val: any): boolean

isPacketTypeArray

  • isPacketTypeArray(val: any): boolean

Generated using TypeDoc