Change message protocol with Azure Management SDK
See original GitHub issueHi,
I have a question regarding Microsoft.Azure.SignalR.Management
package.
Is there a way to change the protocol (MessagePack, NewtonSoftJson, Protobuf, …) ? (like with a ‘classic’ SignalR client)
After reading the code, it seems that, when we create a HubContext with CreateHubContextAsync
there is a hardcoded AddSignalRCore()
so we cannot add protocol options.
Is there a way change the default serialisation protocol when using SignalR Management SDK ? If no, do you plan to add it as a new feature ? Do you want a PR to be able to add options to SignalR Management ?
Thanks !
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
SDKs and REST APIs for Azure Communication Services
Learn more about Azure Communication Services SDKs and REST APIs. ... Azure Resource Manager, REST, Service, Provision and manage ...
Read more >Azure REST API reference documentation
Reference documentation for Azure REST APIs including their supported operations, request URI parameters and request bodies, responses, ...
Read more >Publish messages using Azure Web PubSub service SDK
Set up the project to publish messages · Open a new command shell for this project. · Save the connection string from the...
Read more >Best practices for improving performance using Azure ...
This article describes how to use Azure Service Bus to optimize performance when exchanging brokered messages. The first part of this ...
Read more >Azure IoT Hub communication protocols and ports
This article describes the supported communication protocols for device-to-cloud and cloud-to-device communications and the port numbers ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dmitrykarnitski As a workaround you could set a global default serializer settings for Newtonsoft.JSON in your startup file:
The management sdk always use MessagePack to send messages, the signalr service will convert to the correct protocal (only support json/messagepack) to the signalr client. So the only thing you need to care about is the signalr client’s protocol. For example, you can try to use MessagePack in signlar client
and use a management sdk to send message, you will see both can receive messages.
For other protocols, I think add a ProtocolProvider to management sdk is fine. When use protocols other than json/messagepack, the sianglr service will not recoginize special messages like close messages. But management sdk doesn’t design to support it, so its ok to simply add a ProtocolProvider in management sdk.