Set ApplicationMessageType via REST API?

, ,

I rely on the ApplicationMessageType property to map received events back to the POCOs that they were generated from. I am publishing events from a Blazor WASM application, and can’t use the SolaceSystems NuGet package since it won’t run in a WASM environment. Thus, I’m using an HttpClient with the REST API. I’ve looked through the API documentation for the ApplicationMessageType message property, but I can’t see how to set this property via HTTP headers or otherwise. Can someone please point me in the right direction?

Hey @ofgirichardsonb . Unfortunately that’s one of the message headers you can’t set with REST. It’s too bad we don’t have parity across all our APIs and protocols. Couple options:
Use another header (HTTP Content Type or Content Encoding) IMessage.HttpContentType Property Maybe a User Property instead? I don’t know much about WASM or Blazor or anything, but maybe there’s other messaging libraries you could try, might give you better performance than REST?
MQTT: GitHub - dotnet/MQTTnet: MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/. AMQP: GitHub - Azure/amqpnetlite: AMQP 1.0 .NET Library

Hello @Aaron ,
Thank you for the ideas and links. I ended up simply creating a thin API layer that uses the TCPS protocol instead. It seems to be fast enough, though the AMQP/MQTT idea from WASM itself sounds interesting and I’ll try it out when I get a chance.