1
2
3
4
5
6
7
8
var express = require("express");
var sio = require("socket.io");

var app = express.createServer();

// set up the webapp routes, templates and whatnot

var io = sio.listen(app);