Most voted "socket.io" questions
78 questions
Sort by count of
-
0
votes1
answer413
viewsSending and Receiving Packages (packets) in Nodejs
Well, I’ll try to explain the situation: I am studying Nodejs and for this I decided to rewrite the server-side code of an application that was originally written in C/C++, and this server receives…
-
0
votes0
answers35
viewsHandle socket disconnection in clients
For example: I have 5 mobile devices listening to events A device lost connection The server triggers an event Four connected devices receive the event Disconnected device loses event and then…
-
0
votes1
answer2482
viewsHow to fix charset="UTF-8" in application nodejs within the socket.io
I have a chat app and I’m working with nodejs and socket.io. But I’m having trouble with name coding. The following name: Guilherme Loução is coming as: Guilherme Louã§. I have already saved the…
-
0
votes0
answers38
viewsError socket.io Node.js api changenow
I am developing a exchange system and need to receive in real time the status of transactions and exchange information, following the documentation changenow. but I always get the following error:…
-
0
votes1
answer180
viewsLaravel-echo-server, Laravel Echo, Redis, Socket.io shows nothing in browser
I’ve set up Laravel Echo, Laravel-echo-server, Radis, Socket.io I’m already three weeks into trying and reading every problem posted here on the stack overflow And the documentation I found on…
-
0
votes1
answer54
viewssocket emitting beyond the room
All clients are receiving the message via socket.io. I would like only users who are in the room receive. Server.js sockets.on('connection', function (action) { action.join('testroom');…
socket.ioasked 7 years, 1 month ago Eduardo Bennertz 1 -
0
votes0
answers62
viewsI cannot run a query inside a socket event using Node.js (socket.io), why?
Follow what I did initially: var http = require('http'), express = require('express'), mysql = require('promise-mysql'), mysql2 = require('mysql'), parser = require('body-parser'), path =…
-
0
votes1
answer801
viewsPush notification with Socket.io
I made a small application with Node + socket.io to send notification. adding the code below on the client page, the notification is displayed in the div "messagebox". <script…
-
0
votes1
answer67
viewsHow do I update the amount of socket.io messages in an Angular Ionic3 app to a particular endpoint?
I want to implement an icon in a view that brings the amount of messages a user has in their box, but the update of quantity information should occur in real time according to the model below…
-
0
votes1
answer84
viewsShow registration without updating page
Good afternoon, I swear I’ve searched everywhere, but all I see is teaching to create chat :'( I am developing a project (corporate TV style) for the company I work, and the project was serving very…
-
0
votes1
answer1023
viewsReact Hooks + Socket.io
I’m using the React Hooks for a simple application, a clone of the Instragam feed. To request each post in the api, I’m using this logic: function Feed() { const [posts, setPost] = useState([]);…
-
0
votes1
answer493
viewsHow to make the backend communicate with the socket.io server
I’m studying about socket. and I have a problem with the backend. I am developing a system that searches for files with certain extensions and shows them on a real-time screen. To solve this I…
-
0
votes1
answer136
viewsAssign values of an array within a specific index of another array - React JS
I am developing a simple private chat in Reactjs and Socket.io. However a problem has arisen to resolve the following situation. First, I register users in the database through the Registry…
-
0
votes0
answers87
viewslist of users socketio nodejs
I’m using the following scripts below to store a list of users who are logged in to the chat I’m doing in socket.io and nodejs, but I wanted to store more than one object, in case I’m only able to…
-
0
votes1
answer111
views* Referenceerror: Session is not defined *
I’m having a problem, sharing the Express cookie user data and session functions! the goal is to store such data in my Socket.IO, but it presents a reference error problem where it says the session…
-
0
votes0
answers48
viewsSocket.io in React.js. When a socket is sent, can I retrieve the sent object through the socket id?
I am using socket.io on my system so that every time a user registers appear in real time on my screen. For this I am saving the socket in the mongoDB database, but it saves not only the connected…
-
0
votes1
answer33
viewssocket io error client side
When connecting to the server via socket io the browser returns the following error: http://localhost:3010/socket.io/?EIO=3&transport=polling&t=NOeqJv8 400 (Bad Request) The following code…
-
0
votes1
answer38
viewsRefresh page when making BD changes
Goal My final project involves making a chat room; the user must enter a message, this message is handled in the server.js(Node.js file) and inserted into the database. The page should then be…
-
0
votes0
answers16
viewsCors error with socket.io: No 'Access-Control-Allow-Origin' header is present on the requested Resource
I have an API with a running socket.io instance, configured as follows: const sock = socketIo(server /* servidor express */, { origins: [CONFIG.frontend /* variavel que contem a url do front */],…
-
0
votes2
answers56
viewsAccess-Control-Allow-Origin error with Nodejs and Reactjs application
I’m developing a real-time chat application, using Reactjs on the front end and Node.js on the back end. I have configured the Node server with Socket.io for the application. When entering the chat…
-
0
votes1
answer24
viewsError 'Typeerror: Cannot read Property 'room' of Undefined'
I’m developing a real-time chat application, using Reactjs on the front end and Node.js on the back end. I configured the Node server with Socket.io for the application. When entering the chat page…
-
0
votes0
answers32
viewsHow do I tidy up this list of values from an array?
I am chatting with Node.js and socket.io, I have an error in listing the values of an array, the array of users. I put a <ul></ul> with an id and nothing else. follow the prints below…
-
-1
votes1
answer284
viewsCSS and JS in production of Nodejs + Expressjs + Socket.IO
I have a problem in a chat using Nodejs + Expressjs + Socket.IO. In local environment no problems happen. However, when I put it into production I am having problems with CSS’s and JS’s. I open the…
-
-1
votes2
answers70
viewsSocket com Python
Hi, I’d like to ask for help on a project I’m doing. I wonder how I could get a python socket to "lock" a desktop program I made and only release that program for use when the server side allows.…
-
-1
votes1
answer157
views -
-1
votes1
answer168
viewsReact performs Socket.io’s Callback function more than once
I am developing an application that works with React js in the frontend and a server in Node.js in the backend. On this server, I am using Socket.io to send notifications to the frontend when a…
-
-2
votes1
answer116
viewsSocket io cannot find the route
all right? I am instantiating the socket as IO and when using io.on('Connection', Function()) it ends up not falling inside my io.on when accessing the page, it does not return any messages and in…
javascript node.js socket websocket socket.ioasked 4 years, 9 months ago Henrique Noronha Favorette 51 -
-2
votes1
answer28
viewsUpdate array without having to wait for another user to log in
I am chatting with Node.js and socket.io, I have an error in listing the values of an array, the array of users. I put a <ul></ul> with an id and nothing else. follow the prints below…