Questions tagged as 'socket.io'

1
answer

Create a Chat in Angular 4 with Socket.Io

I have created a chat in angular 4 with the help of socket.io, fine until the messages are sent to everyone, I need the connection to be user with user, not of all with all (for now). I read that I use a nickname but I really do not know what th...
asked by 14.09.2017 / 19:15
1
answer

Run node.js socket.io from web hosting

I have been working with these two services from the console, making the server start executing the commands by console (nodemon servidor.js), everything I find on the web is using localhost, it works perfect I have not had any problems, my ques...
asked by 21.02.2017 / 16:10
1
answer

Connecting to database with socket.io and node.js

Is this the correct way to connect to a database ?, but it worked for me ... many times I find answers: "this form is obsolete", and my question is that, this is a good way to connect to a bd and to make queries? (or the only one), I found it ve...
asked by 06.02.2017 / 14:09
0
answers

How can I persist the id of a session in socket.io when I change the html file?

I am developing an exercise with socket.io where I communicate to several users depending on the room they are in, but when I write the name and save it with the id that generates socket.io By default when you change from one page to another...
asked by 04.01.2019 / 07:56
0
answers

Multiples rooms socket io

as they are. I have a question with some sockets in socket io. What I'm trying to do is create several rooms, and then send them an event that runs every second, that's an interval .. var Room = function (room_name, data) { this.id = ro...
asked by 13.10.2018 / 23:31
0
answers

how to implement private channels in laravel sockets

Hi, I'm trying to implement a private channel for sockets with laravel and the events of these same Along with redis | laravel echo server and Vue my event works perfect my channel is public but I do not know how I should configure my...
asked by 01.10.2018 / 08:05
0
answers

the browser does not recognize the socket.io library

I was making an application that connects from a web page to a socket server. It turns out that when I run the website the browser is not able to find the socket.io library Browser code index.html: <!DOCTYPE html> <html lan...
asked by 24.09.2018 / 13:38
0
answers

PHP IO socket only connect a few times

I have a huge problem, and that is that I am trying to connect to a socket with SocketIO from a client and sometimes it connects as sometimes it does not simply. It really is very annoying because it is a huge problem that this happens. This...
asked by 23.08.2018 / 16:25
1
answer

Send message via socket to a specific client with PHP Socket.IO

I need to send a message to a client connected to a socket server but I need it to only be sent to a person, and not a broadcast as such. I have read that with the function to() of socket.IO it can be but I have implemented it in several...
asked by 20.08.2018 / 17:00
1
answer

Error updating several clients with Socket.io

I have a calendar (fullCalendar.io), after creating / updating an event, I save in the BD and refresh the calendar: function refreshEvent() { $('#calendar').fullCalendar('refetchEvents'); }; I have no problems with this. I implemented...
asked by 09.08.2018 / 22:06