Class PingMessage
- Namespace
- NLightning.Bolts.BOLT1.Messages
- Assembly
- NLightning.Bolts.dll
Represents a ping message.
public sealed class PingMessage : BaseMessage, IMessage
- Inheritance
-
PingMessage
- Implements
- Inherited Members
Remarks
The ping message is used to check if the other party is still alive. The message type is 18.
Constructors
PingMessage()
Represents a ping message.
public PingMessage()
Remarks
The ping message is used to check if the other party is still alive. The message type is 18.
Properties
Payload
The payload of the message.
public PingPayload Payload { get; }
Property Value
Methods
DeserializeAsync(Stream)
Deserialize a PingMessage from a stream.
public static Task<PingMessage> DeserializeAsync(Stream stream)
Parameters
stream
StreamThe stream to deserialize from.
Returns
- Task<PingMessage>
The deserialized PingMessage.
Exceptions
- MessageSerializationException
Error deserializing PingMessage