Jump to content
McKay Development

Recommended Posts

Posted

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?

Posted (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 by SnaBe

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...