Azure / azure-functions-signalrservice-extension

Azure Functions bindings for SignalR Service. Project moved to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService .
MIT License
96 stars 48 forks source link

bidirectional chat not working as expected #146

Open Prabumca12 opened 3 years ago

Prabumca12 commented 3 years ago

I'm able to connect hub but after there is no communication happened on bidirectional chat

image

zackliu commented 3 years ago

Please uncheck send To Default Group: AzureSignalR because you're not in any group. After you uncheck the checkbox, you can text something in textbox and press enter to broadcast

Prabumca12 commented 3 years ago

hi zackliu,

I have tried all the possibilities but not working for me and working only with negotiate (http trigger). I assumed signalr trigger not invoked. Is there any configuration missed me for my end?

image image

zackliu commented 3 years ago

If the trigger was totally not invoked (You can check it from Function's log), I assume the upstream settings in SignalR Service is not correct. And what's the browser console output when you try to send message? If there's no output, it seems to be the upstream setting is not set? If you can't find out any reason, you can give me you ResourceID and time, I can check more from backend.

Prabumca12 commented 3 years ago

There is no error in browser console and function log and find below SignalR Service settings. I'm assuming some settings from my end. Also, I'm not able to resourceID and time.

image

zackliu commented 3 years ago

I checked the configuration of your resource, and found the upstream setting was empty. Please check the document to add the upstream setting. https://docs.microsoft.com/en-us/azure/azure-signalr/concept-upstream For a quick setting and sample, see https://github.com/aspnet/AzureSignalR-samples/tree/chenyl/bi-direction/samples/BidirectionChat#deploy-project-to-azure-function In the Upstream URL Pattern, fill in the <function-url>/runtime/webhooks/signalr?code=<signalr_extension-key>

Prabumca12 commented 3 years ago

Yeah you're correct. I missed that upstream setting. It's working fine. Is there any possibility to downgrade this project to .Net Core 2.2

zackliu commented 3 years ago

It should work in 2.2, while you need to downgrade function tool from v3 to v2