aaa Posted January 9, 2020 Report Posted January 9, 2020 I'm not sure if this is the right place to ask but for the past few weeks I've been trying to create an hourboosting service like freehourboost.com and stidler.com as a hobby project, but I'm not sure what I am doing is very effective. Basically right now I have a single node server as the backend with react on the front, making them interact with socket.io. The node server has a single object that are filled up with instances of the SteamUser class but I don't know how efficient this will be when running hundreds of idles. My question would be how should I handle hundreds of idles at once? I see stidler.com has 5+ idle servers, is that possible when using sockets? and if so how would I go about doing it? Quote
SnaBe Posted January 10, 2020 Report Posted January 10, 2020 You could make a seperate server for x amount of SteamUsers and use http requests to communicate with the main server. vrtgn 1 Quote
aaa Posted January 14, 2020 Author Report Posted January 14, 2020 When using web sockets I'm assuming I should connect multiple sockets across servers and not http requests, right? Quote
SnaBe Posted January 16, 2020 Report Posted January 16, 2020 (edited) If you wish to use websockets, socket.io-client allows you to connect to another http server that's using socket.io. const io = require('socket.io-client'); const socket = io.connect('localhost:8080', { reconnect: true }); socket.on('connect', (socket) => { console.log('Connected to server!'); }); I hope this helps! Edited January 16, 2020 by SnaBe Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.