Questions tagged as 'socket.io'

1
answer

Socket.io google maps

I am building a small system, to see the location of a user in real time with google maps. I have a backend echo in node.js (socket.io). A frontend where I see a google map and the scoreboard in real time. and an app which sends the data to t...
asked by 17.05.2017 / 16:04
1
answer

Problems when ordering an array in javascript and a chat that I am creating

I'm creating a chat with sockets on nodejs that say it's very good. Then I create an array: let nicknames = []; that will save the names of users so that later the frontend will be in charge of showing them in a list. That works perfect for...
asked by 23.07.2018 / 05:24
1
answer

404 error in node application js in heroku

I'm trying to replicate an example to receive some data in real time to emulate adding a subject, but no matter how much you upload and / or change the form, that error still exists. Error POST https://nuevohorario.herokuapp.com/enviarAsign...
asked by 11.06.2017 / 05:21
3
answers

Know if a file has changed its content with Node.js

On my server Node.js I would need to know if the content of a file has been modified, and if it is true, read it and send it by means of socket.io . The code I have, just reads the content the first time (when the page is reloaded)....
asked by 19.07.2017 / 21:16
0
answers

Query about socket.io and pub sub redis [closed]

I'm doing a bot using socket.io and pub sub with redis (I know it's not necessary but I'm using it for other things as well), the problem is that it bounces repeated data. This is the script that controls the sending of data chat.js...
asked by 16.01.2017 / 14:17
5
answers

Modify a variable from the server with Socket.io

I need to change some variables of a script from the view of my project, but I need to do it from the server or have the variable take the value I send it through websockets . I tried the following: //EN EL SERVER io.sockets.on("connect...
asked by 27.10.2016 / 03:53
1
answer

Send a message to a specific user in nodejs socket.io

Greetings, how could I make a message only reach a specific user, because using io.sockets.emit makes the message reach everyone but I could not make it reach only a user that selects, if They could guide me, I'd appreciate it.     
asked by 08.09.2017 / 01:22
2
answers

Arrangement control in Jade template

I'm doing an application where I read a database in MySQL (MariaDB) and the result (an array) I render it to a template in jade. I try to create a slider for 8 images in 4 columns Bootstrap and 2 images with descriptive information in...
asked by 28.04.2017 / 17:22
2
answers

Show all users the letter that is pressed with socket.io

What should I use in socket.io and node.js to see in real time when a user presses any key? Up to now I have been sending messages to all users through a button that triggers an event, now I would like to make the event is issued every time a ke...
asked by 14.03.2017 / 01:30
1
answer

Database with socket.io and node.js

I am trying to create an application of the type messenger. I connect to the database using node.js mysql. Each person who logs on the website is initially connected to a room for example: "room juan" (only John connects to this room) said room...
asked by 18.02.2017 / 15:25