All Questions
2,787
questions
0
votes
0
answers
18
views
How to host socket.io server for free? [closed]
Here's a simple express/node socket.io server with simple frontend, the code is taken from socket.io documentation.
Can anyone please tell me a good hosting service for hosting this website, with a ...
0
votes
0
answers
32
views
Socket.io not creating a connection in Express.Js Server
I am trying to create a socket.io based connection in my localhost server running on port 80. All of a sudden it has stopped working as i did not see my debug statements in session middleware as well ...
0
votes
0
answers
51
views
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (CORS request did not succeed). Status code: (null)
I want to deploy my node.js on vps. my project tech stack is node.js , express , peer.js and socket.io I deployed the project on server but cors blocked error occurs
Picture of the error is
I am ...
0
votes
2
answers
55
views
socket.io server side with express, create socket.on on express endpoint
var esocket;
io.on('connection', (socket) => {
esocket = socket //works intermittent
})
app.get('/launchtask', (req, res) => {
var taskID = CreateID()
// or should it have been ?
...
0
votes
0
answers
28
views
Independent socket.io servers on separate child processes [duplicate]
I've been working with express and socket.io, and have successfully created two different apps that serve clients from a domain. So now I'm interested in having the main page for my domain be a portal ...
0
votes
0
answers
46
views
How to set up an Express server with Socket.IO on Netlify or another free host?
I'm trying to set up an Express server with Socket.IO and deploy it on Netlify. My server was working fine on localhost, but I'm having trouble configuring it to work on Netlify. Here's what I have so ...
0
votes
1
answer
62
views
Trying to create a live server with Vite and Node.js
I am trying to create an application that hosts a live server, where anyone that connects with it will be able to see any changes made in real time. I am using vite and react.js and I have tried to ...
0
votes
0
answers
44
views
Unable to Establish WebSocket Connection with Kubernetes Ingress and Socket.IO
I'm trying to establish a WebSocket connection between a client application and a Socket.IO server running in a Kubernetes cluster behind a Nginx Ingress controller. However, I'm unable to connect ...
0
votes
1
answer
36
views
"CORS header ‘Access-Control-Allow-Origin’ missing" despite setting cors origin in my server.js
I am working on a project where I have set up a socket.io server.
server.js
const express = require('express');
const app = express();
const http = require('http');
const { Server } = require("...
-1
votes
1
answer
41
views
Socket.io , CSS and UUID aren't working together?
I'm developing a project for real-time communication.
I believe there is an issue with my server.js file that I was unable to decipher
I therefore programmed it to use the uuid library to create a ...
0
votes
0
answers
27
views
How to implement Turn Based Logic in Socket.io
I am unable to make turn based logic in socket.io rooms, i can make them communicate but i don't know how to assign roles and make the player wait till the other player finish their turn
Here is the ...
0
votes
0
answers
21
views
Are there any issues with directly accessing RedisStore with express-session?
I am using express with socket.io. I need both the express requests and socket.io to use the latest version of the express-session, for consistency. The way I had to do it previously was with:
req....
0
votes
0
answers
22
views
Perform drag and drop event to all clients with socket.io
it's the first time i'm working with node.js, express and socket.io and i'm trying to perform a simple drag and drop option for all connected clients. Drag and drop is working but it is not rerendered ...
0
votes
0
answers
18
views
JS and images fail to load, but all other static files load right (Express JS, Nginx)
This issue has brought me to my knees, it's so bizarre I can't find anything online and my llama3 ai can't figure it out either.
I am making a simple chat app with socket.io, and im hosting it on the ...
1
vote
1
answer
50
views
Can using socket.request.session.reload() be avoided when using express-session
I am making a web app that uses express, socket.io. I use express-session throughout the code, as a way of storing attributes for the client. However, I need to access the latest version of this in ...