Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/// <reference path="typings/node/node.d.ts"/>
var app = require('express')();
var http = require('http').Server(app);
var io = require('')(http);
app.get('/', function(req, res){
res.sendFile(__dirname + '/index.html');
io.on('connection', function(socket){
console.log('Um usuário se conectou...');
http.listen(5002, function(){
console.log('Servidor ouvindo na porta 5002');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment