mirror of
https://github.com/balkian/hookio-sparql-demo.git
synced 2024-11-23 03:32:31 +00:00
Changed for heroku
This commit is contained in:
parent
bc5c698144
commit
b2ca670f96
@ -54,6 +54,11 @@ app.listen(3000, function () {
|
||||
var io = sio.listen(app)
|
||||
, nicknames = {};
|
||||
|
||||
io.configure(function () {
|
||||
io.set("transports", ["xhr-polling"]);
|
||||
io.set("polling duration", 10);
|
||||
});
|
||||
|
||||
io.sockets.on('connection', function (socket) {
|
||||
socket.on('user message', function (msg) {
|
||||
console.log('User message:'+msg);
|
||||
|
Loading…
Reference in New Issue
Block a user