skip to Main Content

Isolated ServiceBusTrigger Triggering but not broadcasting message to Azure Serverless SignalR with SignalROutput

[Function("DoSomething")] [SignalROutput(HubName = "serverless", ConnectionStringSetting ="SignalRConnection")] public async Task<SignalRMessageAction> DoSomething([ServiceBusTrigger("queue", Connection = "BusConnection")] ServiceBusReceivedMessage message) { return new SignalRMessageAction("newMessage") { Arguments = new[] { message.Body.ToString() } }; } everything is fine while getting message from ServiceBus, trigger is working but…

VIEW QUESTION

SignalR connection works with console app but not with ReactJS

I have the following relevant code on my ASP.NET server: // TrackingHub.cs public class TrackingHub : Hub { public async Task SendLocationData(LocationData locationData) { await Clients.Others.SendAsync("ReceiveLocationData", locationData); Console.WriteLine($"{locationData.Latitude}, {locationData.Longitude}"); } } // Program.cs builder.Services.AddSignalR() builder.Services.AddCors(options => { options.AddDefaultPolicy(builder => {…

VIEW QUESTION

How to deserialize SignalR messages from Redis backplane

I need to read published messages by SignalR from Redis backplane. But they have strange format for me. Example: "x92x90x81xa4jsonxc4x83{"type":1,"target":"ReceiveGroupMessage","arguments":[{"senderId":null,"message":"hello","sentAt":"2023-07-22T16:48:08.7001126Z"}]}x1e" Most of content is JSON, but what about start and the end? What is this, what it means and how…

VIEW QUESTION
Back To Top
Search