1
0
mirror of https://github.com/balkian/hookio-sparql-demo.git synced 2024-11-21 10:52:28 +00:00

Changed for heroku

This commit is contained in:
J.Fernando Sánchez 2012-03-17 16:19:10 +01:00
parent bc5c698144
commit b2ca670f96

View File

@ -54,6 +54,11 @@ app.listen(3000, function () {
var io = sio.listen(app) var io = sio.listen(app)
, nicknames = {}; , nicknames = {};
io.configure(function () {
io.set("transports", ["xhr-polling"]);
io.set("polling duration", 10);
});
io.sockets.on('connection', function (socket) { io.sockets.on('connection', function (socket) {
socket.on('user message', function (msg) { socket.on('user message', function (msg) {
console.log('User message:'+msg); console.log('User message:'+msg);