Questions tagged as 'socket.io'

1
answer

Node JS, Socket.IO Rooms and namespaces

I'm developing a map-based android app that will create chat rooms in some pre-determined places and places where users need them. I did some research with mechanisms that I could use in my application and came across the concept of namespac...
asked by 12.07.2017 / 15:47
1
answer

Node.js does not load js nor css scripts

I am making a chat app and I can get the page I want but this page does not load the corresponding css nor the js scripts, does anyone have a solution for this please? So far I have this: Code: server.js: var socket = require( './node_m...
asked by 03.06.2016 / 17:40
1
answer

Socket.io: module can not be found

I was playing with Socket.io, everything working fine, when I gave the command node app.js from one time to another NodeJS returns me an error (it was working before)    Can not find module 'socket.io' I looked for another example...
asked by 07.01.2016 / 16:33
1
answer

Restricting clients receiving messages with socket.io

Well, how do I get this control on socket.io. I'll illustrate my situation: imagine that I have a list of friends, how do I get my messages to only my friends and not all connected clients, like a social network where only those who can see my p...
asked by 15.01.2016 / 19:48
2
answers

Asynchronous execution problem on node server with Express, MySQL and Socket.IO

I'm developing a project on Node.JS with Express, MySQL and Socket.IO. When the user opens the main page provided by the server, the request must cause data to be read from the database and sent to the client for it to be listed on the page....
asked by 12.08.2015 / 16:27
1
answer

Get QueryString with NodeJS

I need to get the QueryString being passed to the server created on NodeJS . I've tried it in many ways but I can not get the and ph parameters. I am a beginner in NodeJS and the code I have is: var express = require('express') ,...
asked by 26.11.2016 / 09:20
0
answers

Stream video with Nodejs and Socket.io

I need help streaming with Nodejs and Socket.io. I am using the rtsp-ffmpeg library to perform the stream. I was able to execute it by transmitting in img format according to the specific documentation itself, but I can not send an mp4 even afte...
asked by 17.03.2017 / 17:11
1
answer

Make multiple requisitions or just one?

I'm doing an application in nodejs, where it is constantly necessary to consult information in the database, for example: name, description of items and etc ... A similar site would be netflix, which queries such information every time the user...
asked by 07.07.2018 / 18:56
1
answer

How to send a message to a specific room with Socket.io?

How do I send a message to a specific room? type: server.js io.in('roomA').on('msg', function(msg) { ... }); client.js io.in('roomA').emit('msg, 'Hi');     
asked by 22.05.2016 / 03:55
1
answer

Doubt on using Socket in java on android

I want to implement data transmission via Socket, I am trying to implement Socket.io but I do not understand the operation. I want to make communication between two android devices. I know it has the server side and the client side. But I can no...
asked by 25.06.2017 / 17:52