Interface IPingPongManager
- Namespace
- Alis.Core.Network
- Assembly
- Alis.dll
Ping Pong Manager used to facilitate ping pong WebSocket messages
internal interface IPingPongManager
Methods
SendPing(ArraySegment<byte>, CancellationToken)
Sends a ping frame
Task SendPing(ArraySegment<byte> payload, CancellationToken cancellation)
Parameters
payload
ArraySegment<byte>-
The payload (must be 125 bytes of less)
cancellation
CancellationToken-
The cancellation token
Returns
Pong
Raised when a Pong frame is received
event EventHandler<PongEventArgs> Pong