Nakama .NET Client SDK 3.8.0
Nakama .NET Client SDK
Loading...
Searching...
No Matches
Nakama.Ninja.WebSockets.IPingPongManager Interface Reference

Ping Pong Manager used to facilitate ping pong WebSocket messages. More...

Inheritance diagram for Nakama.Ninja.WebSockets.IPingPongManager:
Nakama.Ninja.WebSockets.PingPongManager

Public Member Functions

Task SendPing (ArraySegment< byte > payload, CancellationToken cancellation)
 Sends a ping frame.
 

Events

EventHandler< PongEventArgsPong
 Raised when a Pong frame is received.
 

Detailed Description

Ping Pong Manager used to facilitate ping pong WebSocket messages.

Member Function Documentation

◆ SendPing()

Task Nakama.Ninja.WebSockets.IPingPongManager.SendPing ( ArraySegment< byte >  payload,
CancellationToken  cancellation 
)

Sends a ping frame.

Parameters
payloadThe payload (must be 125 bytes of less)
cancellationThe cancellation token

Implemented in Nakama.Ninja.WebSockets.PingPongManager.

Event Documentation

◆ Pong

EventHandler<PongEventArgs> Nakama.Ninja.WebSockets.IPingPongManager.Pong

Raised when a Pong frame is received.


The documentation for this interface was generated from the following file: