Robert Schultz

  • Archive
  • RSS

WCF WebSockets

Update: I have moved the code snippets to a Github gist because of design constraints of my blog. It’s better that way ;)

So one of my new hobbies is using Node.js, which is an uber awesome event driven server side JavaScript engine (whew). Anyway, I hit a point where I wanted to use Node.js with WCF and was thinking how I would be able to interact with my service layer (WCF) to send asynchronous events back to the client in a similiar manner that Node.js does.

WCF WebSockets Prototype

Microsoft has released a prototype which gives initial support for WebSockets, pretty damn cool. Check it out here. Effectively you can now do something like this:

Gist

So with some magic, and a few lines of code you can quickly create a WCF host that will listen for connections via an HTML 5 WebSocket and echo back the value. Neat, huh? Now a quick demo of a client.

Gist

With Microsoft releasing IE9 today, we’re one step closer to all browsers supporting these insanely cool HTML 5 features.

    • #WCF
    • #WebSockets
    • #HTML5
  • 1 year ago
  • 23
  • Comments
  • Permalink
  • Share
    Tweet

23 Notes/ Hide

  1. maverickveri liked this
  2. calvaryoneti liked this
  3. ravenousgobl liked this
  4. overspreadde liked this
  5. daughters45go liked this
  6. harbingernor liked this
  7. miscarriage8it liked this
  8. realityprettydoublepenetration liked this
  9. robertschultz posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

Portrait/Logo

About

I'm a software engineer at heart and living the dream. Currently a development manager at Ancestry.com working with an awesome team trying to build the next generation of web apps.

Me, Elsewhere

  • @robertschultz on Twitter
  • robertschultz on Soundcloud
  • robertschultz on Rdio
  • Google
  • Linkedin Profile
  • robertschultz on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr