1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2026-02-16 14:13:46 +00:00

Added call to ApiClient.HandleUnhandledMessage when no websocket message processor is found based on topic to allow additional processing

This commit is contained in:
Jkorf 2026-02-10 15:59:35 +01:00
parent 3372b9eb44
commit a8ffe90bf2

View File

@ -673,13 +673,16 @@ namespace CryptoExchange.Net.Sockets.Default
if (!processed) if (!processed)
{ {
lock (_listenersLock) if (!ApiClient.HandleUnhandledMessage(this, typeIdentifier, data))
{ {
_logger.ReceivedMessageNotMatchedToAnyListener( lock (_listenersLock)
SocketId, {
typeIdentifier, _logger.ReceivedMessageNotMatchedToAnyListener(
topicFilter!, SocketId,
string.Join(",", _listeners.Select(x => string.Join(",", x.MessageRouter.Routes.Where(x => x.TypeIdentifier == typeIdentifier).Select(x => x.TopicFilter != null ? string.Join(",", x.TopicFilter) : "[null]"))))); typeIdentifier,
topicFilter!,
string.Join(",", _listeners.Select(x => string.Join(",", x.MessageRouter.Routes.Where(x => x.TypeIdentifier == typeIdentifier).Select(x => x.TopicFilter != null ? string.Join(",", x.TopicFilter) : "[null]")))));
}
} }
} }
} }