JsonApiDotNetCore and SignalR implementation

I’m using the JsonApiDotNetCore library, and I’m trying to push data through SignalR to the clients. Pushing the data is no problem, however, I want to be this data formatted according to the JSON:API specs. As the JsonApiDotNetcore library already does this for general API calls, I’m trying to do the same for the SignalR messages.

I tried to access the IJsonApiOptions, and use the SerializerOptions of it to serialize my data. Unfortunately, this doesn’t work. Also not when I add a ResourceObjectConverter to it myself.

Is there any option to do this?

We are currently running on v5.0.3, as of problems on the front-end application which needs a lot of rewrites if we update it.

Leave a Comment