Questions tagged as 'socket.io'

0
answers

I can not execute a query within a socket event using node.js (socket.io), why?

Here's what I did initially: var http = require('http'), express = require('express'), mysql = require('promise-mysql'), mysql2 = require('mysql'), parser = require('body-parser'), path = require("path"...
asked by 04.02.2018 / 19:17
1
answer

socket emitting beyond the room

All clients are receiving the message through socket.io.     I wish only the users in the room would receive. Server.js sockets.on('connection', function (action) { action.join('testroom'); action.on('say to someone', function(msg...
asked by 30.05.2017 / 21:41
0
answers

Treat socket disconnection in clients

For example: I have 5 mobile devices listening to events A device has lost the connection The server fires an event Four connected devices receive the event The disconnected device loses the event and then reconnects It should rec...
asked by 28.11.2016 / 14:30
0
answers

404 socket.io.js with express on node.js

I am creating a simple chat, which exchanges simultaneous messages between 2 browsers, using node.js with socket.io, but for some reason, my project can not identify my socket.io.js inside the project. And yes, I downloaded the socket.io. My...
asked by 28.06.2016 / 19:30
0
answers

Is there a socket.io event that activates when the client's internet is slow?

Hello. I'm in a project on nodejs + socket.io, I'm in big trouble, regarding slow internet client, I need to know if inside socket.io there is some kind of event // If the client's internet is slow it activates this function socket.event('i...
asked by 10.06.2016 / 22:03
0
answers

NodeJs - socket.io error: xhr-polling

I have a new server configured like this: var express = require('express'); // CHAMADA DA API EXPRESS var app = express(); var server = require('http').createServer(app);...
asked by 30.07.2015 / 15:01
1
answer

CSS and JS in production of NodeJS + ExpressJS + Socket.IO

I have a problem in a chat that uses NodeJS + ExpressJS + Socket.IO. There are no problems in the local environment. However, when I put it into production I'm having problems with CSS's and JS's. I open the page in Chrome, check the Network tab...
asked by 20.03.2014 / 13:47