Aborts sending the message, if it has not been sent yet.
Returns the current state of the packet.
Returns the packet's timeout duration, or the default if undefined.
Returns the randomly-assigned numeric ID of the packet.
Sets the sequence number on the outgoing packet.
Sets the timeout duration on the packet. It defaults to the socket's timeout duration.
toJSON implements is called in JSON.stringify.
Generated using TypeDoc
A Packet is a wrapped Method that can be timed-out or canceled whilst it travels over the wire.