1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-08-31 20:51:25 +00:00

Fix response type in websocket queries not interested in the response

This commit is contained in:
Jkorf 2025-08-07 14:15:00 +02:00
parent dab9a21608
commit 4a9058fc1c

View File

@ -47,7 +47,7 @@ namespace CryptoExchange.Net.Sockets
/// </summary>
public static MessageMatcher Create<T>(string value)
{
return new MessageMatcher(new MessageHandlerLink<T>(MessageLinkType.Full, value, (con, msg) => CallResult.SuccessResult));
return new MessageMatcher(new MessageHandlerLink<T>(MessageLinkType.Full, value, (con, msg) => new CallResult<T>(default, msg.OriginalData, null)));
}
/// <summary>