Reputation: 237
Is It possible to create HTML5 Web Socket by use of ASP.NET/Web Form?
Upvotes: 0
Views: 5276
Reputation: 1485
You should consider trying VisualJS.NET . Which is builtin reverse ajax and websocket supported asp.net web application development layer.
Upvotes: 0
Reputation: 1786
The short answer is No, not with .NET 4.0 and IIS 7.5 (current production releases of .NET and IIS respectively). As J.P. mentions there will be support for web sockets in the future. More specifically, IIS 8 will be able to support this along with some additions to the System.Net namespace that will be bundled with ASP.NET 4.5.
In the mean time you may be interested interested in learning a bit more about SignalR. It includes a client side library that makes use of HTML5 Web Sockets, but falls back to long-polling if web sockets aren't supported by either the client or the server. And best of all, this fallback mechanism is transparent to the client and implementer. A .NET server implementation that supports web sockets is also provided.
This SO Q & A may also be of interest.
.NET 4.5 WebSockets vs SignalR
Upvotes: 2
Reputation: 5763
Uhm. No. HTML5 web sockets are a client-side feature, meaning you can use it with JavaScript code through the WebSocket object. Thus, from the client-side code you write in your ASP.NET WebForms/MVC project, you are able to use it.
If you are trying to support the web socket protocol through ASP.NET, that is possible with a very new version of ASP.NET. Is this what you're trying to do? Your question is a bit vague.
Upvotes: 2