HTML5 WebSockets Client for .NET.

So, I found this amazing thing called HTML5 WebSockets, the new API. This is still in the DRAFT version, but pretty well supported. Full duplex bidirectional communication. I know how to use it with JavaScript, there is an API. But if I want to use the WebSocket client in my C # /. NET application, how do I do this?

For example, JavaScript: http://bohuco.net/blog/2010/07/html5-websockets-example/

Are there any special client libraries for WebSockets in .NET?

+49
c # html5 websocket
Feb 13 '11 at 17:22
source share
11 answers

sir SuperWebSocket includes a WebSocket server implementation and a WebSocket client implementation. SuperWebSocket Project Page

+13
Mar 10 2018-11-11T00:
source share

I recently did some research on this process by creating the .NET and Silverlight client library for Pusher . I found the following client libraries and WebSocket projects:

At the moment, the Microsoft implementation is probably the easiest to use, and it also has a Silverlight library. SuperWebSockets has a Silverlight project in source, but not in the last drop.

+7
Jun 25 2018-11-11T00:
source share

Starting with .NET 4.5, WebSocket clients are supported through System.Net.WebSockets.ClientWebSocket

You can view or download the sample C # application from the MSDN code website: http://code.msdn.microsoft.com/WebSockets-middle-tier-5b2972ce/sourcecode .

In the questionnaire, sampling is mainly focused on connecting to WebSocket services, which is another important use case for a C # network application.

+5
Jul 10
source share

You better try WebSocket4Net: http://websocket4net.codeplex.com/

+4
Feb 23 '12 at 5:01
source share

I have not tried the Microsoft implementation, but I think Xsockets has the fastest installation time (nuget package). Less than 3 minutes from start to launch full socketserver + client (demo chat application). Youtube demo

It has a backup of Silverlight and flash for older browsers.

+2
Jun 25 2018-11-11T00:
source share

You can use http://www.nuget.org/packages/Microsoft.AspNet.SignalR/ or http://www.asp.net/signalr

ASP.NET SignalR is a new library for ASP.NET developers that simplifies the development of web functions in real time. SignalR allows bidirectional communication between the server and the party. Servers can now redirect content to client access instantly when it becomes available. SignalR supports web sockets and is returning to other compatible technologies for older browsers. SignalR includes an API for managing connections (for example, connecting and disconnecting events), grouping connections, and authorization.

+2
Sep 23 '13 at 20:38
source share

A friend and I just released a very light, lean, scalable C # web server server: https://github.com/Olivine-Labs/Alchemy-Websockets

We built it for use in our online game, so our main goal was to quickly and efficiently manage multiple connections. This is from my research, most effective there. And, as a bonus, it supports flash networks as a reserve for users without browsers with websocket support.

+1
Mar 24 '11 at 20:21
source share

If you're looking for a high-performance enterprise WebSocket server, check out Kaazing . Kaazing has full .NET support, including Xamarin.

The following is a step-by-step guide for AMQP: Checklist: Creating Microsoft.NET AMQP Clients .

[Disclosure: I work for Kaazing.]

+1
Mar 04 '12 at 7:28
source share
0
Feb 13 '11 at 17:31
source share

I am deploying XSockets.net. The structure works well, it is supported, the developers offer paid support, but for normal problems, they are also quite active here in SO, and they help a lot.

They offer a .net API for socket implementations, as well as a javascript API for the client.

As a summary, I can recommend it.

0
Mar 25 '14 at 13:01
source share

You have several options.

-one
Feb 13 '11 at 18:33
source share



All Articles