Questions tagged as 'socket.io'

1
answer

Why NodeJS has 4.x, 5.x, 6.x and 0.1x.x versions, etc.

Why Node.js exists in versions 4, 5, and 6, but also exists in 0.x.x versions. Or maybe, what are the differences between x.x and 0.x.x ?     
asked by 10.05.2016 / 03:07
2
answers

HTML Desktop App with Node.JS + Socket.IO

I need to develop an HTML-based chat app that connects to a Node.JS server that is running with Socket.IO. I started to develop much of the app using TideSDK, but at the time of the integration of calling the Socket.IO script the app did not...
asked by 10.02.2014 / 19:30
1
answer

How to create loop to issue an event in socket.io?

I have an architecture problem. I have a code using socket.io at nodejs : socket.on('images',function (aData){ ... socket.sockets.emit('show', JSON.stringify({imagens : json})) }); I'm trying to broadcast a broadcast from tim...
asked by 20.01.2014 / 11:16
2
answers

Generate a random profession for Online Players

I am creating a small game (Android) to play me some more friends of mine. The game is called "Cops and Thieves". At least it is necessary to have 4 players in which one of them will be the POLICE, another will be the CRIMINAL, another will be t...
asked by 23.12.2016 / 10:05
1
answer

NodeJS running on Port 80 with Apache

Well, it is the following, whenever I intend to use socket.io I have to use some port, with that it makes that whenever I want to have access to the web page that works with the socket.io I have to go to: wwww.meusite .com: port. What I would...
asked by 23.03.2017 / 21:31
1
answer

Doubts about the operation of the socket.io

I have a doubt regarding the socket.io that I have researched in several places and most of the one rolled or uses obscure terms, but ends up not answering the doubt directly. The question is whether it works in the following way: at the time...
asked by 19.11.2015 / 02:49
1
answer

Stream data with socket.io

Hello, I'm streaming data from the bank in this way, I know it's too overloaded by the client's browser, would I have another way to stream it without loading it? var express = require('express'), app = express(), session = require...
asked by 02.01.2015 / 13:25
1
answer

Difference in Socket.io statement

I'm starting to work with Socket.io on Node.js, the question for now is simple. Using my example below. What's the difference in using socket.emit () and chat.emit ()? PS: * I hope you have no kkk syntax error. var chat = io.of('/chat')...
asked by 27.02.2016 / 14:20
2
answers

How to create a sequence of messages in Javascript?

I have an application made in Node, Express and Socket.oi in which alerts are sent to a certain screen that receives the message through socket.io, in this screen I receive the message, format it in a dialog and screen display which is hidden af...
asked by 17.12.2018 / 20:51
1
answer

Broadcast via a route on Express

I have an endpoint in an application node that when calling should trigger a broadcast to the connected users in the application node. That is, as soon as the user entered the system it would connect through the socket.io and would wait until an...
asked by 24.09.2015 / 21:06