mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Decreased log level for Shuffle pongs as it's spammy and I no longer need to track this so closely as the issues with it have been mostly fixed. Also cleaned up some remnants from the copy paste job
This commit is contained in:
@@ -98,7 +98,7 @@ public class Shuffle : IDisposable
|
||||
|
||||
private void WsDisconnection(DisconnectionInfo disconnectionInfo)
|
||||
{
|
||||
_logger.Error($"Client disconnected from the chat (or never successfully connected). Type is {disconnectionInfo.Type}");
|
||||
_logger.Error($"Client disconnected from Shuffle (or never successfully connected). Type is {disconnectionInfo.Type}");
|
||||
_logger.Error(disconnectionInfo.Exception);
|
||||
OnWsDisconnection?.Invoke(this, disconnectionInfo);
|
||||
}
|
||||
@@ -113,12 +113,6 @@ public class Shuffle : IDisposable
|
||||
_wsClient.SendInstant(initPayload).Wait(_cancellationToken);
|
||||
}
|
||||
|
||||
// Stream start JSON
|
||||
// {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"server_time\":1718631487,\"play_delay\":0,\"type\":\"stream-up\"}"}}
|
||||
// View count update (every 30 seconds)
|
||||
// {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"type\":\"viewcount\",\"server_time\":1718631500.636146,\"viewers\":62}"}}
|
||||
// {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"type\":\"viewcount\",\"server_time\":1718631530.654308,\"viewers\":162}"}}
|
||||
// {"type":"MESSAGE","data":{"topic":"video-playback-by-id.114122847","message":"{\"type\":\"viewcount\",\"server_time\":1718631560.551188,\"viewers\":179}"}}
|
||||
private void WsMessageReceived(ResponseMessage message)
|
||||
{
|
||||
if (message.Text == null)
|
||||
@@ -147,7 +141,7 @@ public class Shuffle : IDisposable
|
||||
|
||||
if (packetType == "pong")
|
||||
{
|
||||
_logger.Info("Shuffle pong packet");
|
||||
_logger.Debug("Shuffle pong packet");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user