Initiate a websocket connection when running Azure function

Singh, Neha 0 Reputation points
2024-03-13T18:48:11.9066667+00:00

I have a requirement where i want to notify users if a process is completed or not. I want to use Azure function that initiates a websocket connection but it is not working as expected. Can anyone please help me in this scenario. SIgnal R and pubsub service i cant use. Is there is any other alternative. This is a bit urgent. Thank you in advance.

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
70 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,542 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 59,806 Reputation points
    2024-03-13T20:08:53.39+00:00

    PubSub is the Microsoft support for azure functions using web sockets. Your other option is to use a web app service rather than azure functions. a simple asp.net core min api is a good replacement for an azure function.

    https://learn.microsoft.com/en-us/aspnet/core/fundamentals/websockets?view=aspnetcore-8.0

    0 comments No comments