WCF WebSockets: First Glance
I finally got around to playing with the first drop of WebSockets support for WCF. I’m pretty familiar with WebSockets as I’ve been using Node.js to play around with them for quite a while now. The server API in Node.js is wonderful as it couldn’t be simpler – to demonstrate this, take a look at how we’d create a basic echo server.
var ws = require("websocket-server");
var server = ws.createServer();
server.addListener("connection", function(connection){
connection.addListener("message", function(msg){
server.send(msg);
});
});
server.listen(8080);


