jeudi 3 mai 2018

Continious Polling issue node+redis+soket.io

Getting continuously http://localhost:8890/socket.io/?EIO=3&transport=polling&t=1525342978802-2 get requests

Client : socket = io.connect('http://localhost:8890')

Server: var app = require('express')();

var server = require('http').Server(app);

var io = require('socket.io')(server); server.listen(8890);

io.on('connection', function (socket) {

console.log(socket['id'] + "  client connected");

});

Any help highly appreciated. Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire