Open GregorBiswanger opened 1 year ago
I now have the following in my code, is this correct?
Yes, that correct.
JsonSerializer Support for On-Calls
It already supported. try:
server:
socket.emit('hello', { username: 'test' }, { province: 'xxx', city: 'abc' });
client:
io.On("hello", res =>
{
var person = res.GetValue<Person>();
var address = res.GetValue<Address>(1);
});
hey,
the documentation says that you can simply replace the serializer with Newtonsoft. This also works with data that I submit with Newtonsoft Json via the Emit method without any problems. However, with On calls, I still get the data using System.Text.Json. Can I change that too?
By the way. The documentation says that you can replace the serializer as follows:
However, the OptionsProvider property does not exist. I now have the following in my code, is this correct?