WebSockets and WebSync 4
by Anton Venema, on June 22, 2012
As you probably know, WebSync 4 has full support for WebSockets. Not just any WebSockets, either - port 80 WebSockets using IIS!
Over the past year or so, several projects have cropped up attempting to allow you to use WebSockets before the standard was solidified and before Microsoft implemented support for the protocol in IIS. There are two key failures in each of these projects.
- They require you to run the server outside IIS, which means you lose out on all the stability, performance, and maintainability that IIS delivers.
- They require you to run the server on a non-standard HTTP port if you want to keep IIS running on your server for other requests.
Thankfully, WebSockets in WebSync are not subject to these limitations! Simply add a reference to FM.WebSync.WebSockets.dll and invoke WebSyncWebSockets.Enable() in your application startup code. No changes to your architecture, no external services, and it's all over standard HTTP ports (80 and 443).
In order to get WebSocket goodness, you'll need to be running IIS 8 and .NET 4.5, which means you'll need Windows Server 2012 or Windows 8. Detailed instructions on getting started can be found in our online documentation.