✅ SignalR trigger for Azure Function (isolated) does not trigger.
Trying to set up a SignalR trigger that recieves a message from the client. The negotiate work fine, and the connection gets established. I see the message being sent from the client as well, but my function never triggers.
The message that gets sent:
{"arguments":["Hello from client"],"invocationId":"0","streamIds":[],"target":"sendMessage","type":1}
Azure function:
24 Replies
index.html (client):
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
The "messages" is not the hub name, that's the category
I don't have a github project, this is all the code
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View

I don't think that's the issue though, that's just the path where the negotiate endpoint lives
It manages to establish the connection with that set-up
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Think it might be this

Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
If I run this function, the connection works just fine

Azure Functions SignalR Service trigger binding
Learn to handle SignalR Service messages from Azure Functions.
The stuff about SignalR Service integration
Think I need to set up a URL to be able to use the trigger
The connection works if I don't use the trigger
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Of the js sdk?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Ah
I took that straight from one of the examples
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Makes sense, I'll try it thanks
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Changed it to <script src="https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/6.0.1/signalr.js"></script>
This serverless stuff isn't too straightforward is it 😂
Seems like I found the answer: https://stackoverflow.com/questions/73982004/local-development-with-azure-signalr-service-and-azure-functions
Stack Overflow
Local development with Azure SignalR Service and Azure Functions
I'm using Azure SignalR Services, which is running in the cloud, and running an Azure Function App, which runs locally on my laptop on localhost. I have the following hub:
public class Leaderboard...
https://learn.microsoft.com/en-us/azure/azure-signalr/signalr-howto-emulator - There's an emulator for local development
Azure SignalR Local Emulator for serverless development
Learn how to use Azure SignalR Local Emulator for serverless development
Thanks for taking the time to look at it!
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View