Hi @Ashok Kumar ,
You could try hosting a WebSockets server in an ASP.NET context or use SignalR.
Hope the following document can help you.
WebSockets in ASP.NET and JavaScript
Using WebSocket in .NET 4.5
https://github.com/dotnet/aspnetcore/blob/6cc9f6f130af4ed0e7f321b144265cfbcec0ceee/src/Middleware/WebSockets/samples/AutobahnTestAppAspNet4/EchoSocket.ashx.cs
SignalR and WebSocket
https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/introduction-to-signalr#signalr-and-websocket
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.