Skip to content

Commit 568b3c5

Browse files
committed
Add debug logs
1 parent b8257da commit 568b3c5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Assets/Plugins/StreamChat/Libs/Websockets/WebsocketClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,10 @@ private async Task TryCloseAndDisposeAsync(WebSocketCloseStatus closeStatus, str
351351
{
352352
if (_internalClient.State == WebSocketState.Open)
353353
{
354-
#if STREAM_DEBUG_ENABLED
355-
_logs.Warning("Internal WS - Disposing; Is open -> CloseOutputAsync");
354+
#if STREAM_DEBUG_ENABLED || STREAM_TESTS_ENABLED
355+
_logs.Warning($"Internal WS - Disposing; Is open -> CloseOutputAsync. Has credentials: {_internalClient.Options.Credentials != null}, Has cookies: {_internalClient.Options.Cookies != null}");
356356
#endif
357+
// StreamTODO. This can throw " InvalidOperationException: This operation is only allowed using a successfully authenticated context."
357358
await _internalClient.CloseOutputAsync(closeStatus, closeMessage, CancellationToken.None);
358359
}
359360

0 commit comments

Comments
 (0)