Class PongMessage
- Namespace
- NLightning.Bolts.BOLT1.Messages
- Assembly
- NLightning.Bolts.dll
Represents a pong message.
public sealed class PongMessage : BaseMessage, IMessage
- Inheritance
-
PongMessage
- Implements
- Inherited Members
Remarks
The pong message is used to respond to a ping message. The message type is 19.
Constructors
PongMessage(ushort)
Represents a pong message.
public PongMessage(ushort bytesLen)
Parameters
bytesLen
ushortThe number of bytes in the pong message.
Remarks
The pong message is used to respond to a ping message. The message type is 19.
Properties
Payload
The payload of the message.
public PongPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a PongMessage from a stream.
public static Task<PongMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<PongMessage>
The deserialized PongMessage.
Exceptions
- MessageSerializationException
Error deserializing PongMessage