Notes on RealTime RTC by @ulfbjo #devsum13

Ulf starts off by showing all the platforms the XSockets framework executes - .NET, Mono, hosted in Azure. He then recommends us all to check out Chocolatey (in general), and as way to install an XSockets server.

Ajax is great, but continually polling a data source is a real waste of resources, says Ulf. For sparse updates, however, Ajax is still great. 

For realtime data scenarios, Ulf promotes the use of Web Sockets. However, many implementations of Web Sockets are chatty in the fact that they send notifications to clients whether or not the clients want the messages or not, forcing the clients to filter out messages themselves and using more bandwidth than necessary.

Ulf then starts a new plain MVC4 Web Solution, runs Install-Package XSockets and writes some simple JavaScript that binds to the XSockets GenericController, which manages the subscriptions. To create a new controller, Ulf invokes the package manager console again -  Scaffold XSocketController Zoo -projectname Controllers - which creates the Controllers project and the Zoo Controller implementation.

If you run Install-Package XSockets in a non web-app, it resolves and automatically gives you a little code nugget that shows you how to start a listening server in your client of choosing.



Ulf finishes up by showing off a demo, running XSockets on a Raspberry Pi with Mono on Linux, which you can see demonstrated here.

Comments

Popular posts from this blog

Auto Mapper and Record Types - will they blend?

Unit testing your Azure functions - part 2: Queues and Blobs

Testing WCF services with user credentials and binary endpoints