Dotnet core (3.1 or above) websocket client supported libraries

kishore kumar 1 Reputation point
2021-06-14T14:21:50.363+00:00

Dear Experts,

I am creating the websocket client in dotnet core console application.
I am trying to develop an application which creates list of websocket clients.
I want to receive events when on client side (onmessage, onerror, onclose events )
also, ping/timeout/add subprotocol/add headers/add username password, etc.

I tried ClientWebSocket from MSDN and it does not have (onmessage, onerror, onclose events handlers).

Can you please help to suggest any websocket client library
or snippet of code to handle all above cases.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,819 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.