blob: e2367b4046b9c13cefb99ac923f5de03ff4138ef [file] [log] [blame]
using DotPulsar.Internal.PulsarApi;
namespace DotPulsar.Internal
{
public sealed class PingPongHandler
{
private readonly Connection _connection;
private readonly CommandPong _pong;
public PingPongHandler(Connection connection)
{
_connection = connection;
_pong = new CommandPong();
}
public void Incoming(CommandPing ping)
{
_ = _connection.Send(_pong);
}
}
}