среда, 3 сентября 2014 г.

index.js

var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);

app.get('/', function(req, res){
  res.sendfile('index.html');
});

io.on('connection', function(socket){
  console.log('a user connected');
});

http.listen(3000, function(){
  console.log('listening on *:3000');
});

Комментариев нет:

Отправить комментарий

Popular Posts

About us

Translate

Popular Posts

Постоянные читатели

Disqus for Tovarov i Uslug

Facebook



Просто Форма
Имя*
Фамилия*
Эл. почта*
comments powered by Disqus