Image: [W3C](https://www.w3.org/html/logo/)

Using your WebSocket in JavaScript

Extends the previous WebSocket sample by providing a generic JavaScript page that exercises a WebSocket endpoint. Example code is on GitHub. Interacting with WebSockets Some of the disqus feedback questions were in how to interact with the WebSocket Service. I’ve modified the original index.html and created a new file loop.html. Now when you navigate to your service, just specify the loop.html file. I launch the service from Visual Studio (which by default uses IISExpress to host the service). ...

January 2, 2017 · 3 min · Brad Merrill
Image: [W3C](https://www.w3.org/html/logo/)

Websockets in Asp.Net Core

An example of creating and using a WebSocket with the new ASP.NET Core. The example code is available on GitHub here. Background WebSockets were introduced as part of the draft HTML5 specification in 2008, and the first browser to provide support was Google Chrome in 2009. At this time (July 2016), the following browsers fully support the WebSocket standard (RFC 6455): Internet Explorer 10 Firefox 11 (PC,Android) Chrome 16 (PC,Mobile) Safari 6 (Mac,iOS) Opera 12.10 (PC,Mobile) Android Browser 4.4 Websockets Unlike the HTTP protocol, a WebSocket provides fully bi-directional (full-duplex) communication, enabling a event based model of programming using a message passing protocol. Since there is not the constant overhead of re-establishing the connection, the passing of multiple small messages is extremely efficient and lends itself well to client/service interactions with low latency. ...

July 28, 2016 · 5 min · Brad Merrill