How to log or dump raw JSON messages with SignalR - Protocol JSON (Hub)?

Viewed 693

How to get dump of all messages (raw payload) that are traveling between client <> server ? I tried to configure logging verbosity for following namespaces, without any success..

Microsoft.AspNetCore.SignalR.*
Microsoft.AspNetCore.Http.Connections.*
Microsoft.AspNetCore.Http.Connections.Internal.Transports.WebSocketsTransport.*

A lots of information, but all I got is :

DefaultHubDispatcher - Received hub invocation: InvocationMessage { InvocationId: "0", Target: "sendMessage", Arguments: [ System.Collections.Generic.List`1[  MyMessageHubType  ] ], StreamIds: [  ] }. 

I tried to override ToString() on MyMessageHubType, nu success ..

Any clues ? Somebody managed to accomplish this ?

0 Answers
Related