When using Clients.All.someMethod(myData)
in SignalR, how can you intercept the data that is send back to the client? I know MVC is using a default JavascripDeserializer
. Is this serializer also used when sending data back to the client using SignalR?
What I want in the end, is to convert DateTime
C# properties to my own custom format in Json.
Can someone help me / explain to me how to do this?
Edit:
myData can be just a plain object with a DateTime property, but it is also possible that it is a list of integers or dates. It actually doesn't matter, I just want to know how I can interrupt the conversion from C# to Json when using SignalR.