Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "p2p/packets/Packet"

Index

Type aliases

PacketHeader

PacketHeader: { id: string; reqId?: undefined | string }

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): val is Packet

isPacketInterface

  • isPacketInterface(obj: any): obj is PacketInterface

isPacketType

  • isPacketType(val: any): val is PacketType

isPacketTypeArray

  • isPacketTypeArray(val: any): val is PacketType[]

Generated using TypeDoc