socket.io-client icon indicating copy to clipboard operation
socket.io-client copied to clipboard

Client should be runnable in Node.js

Open aarong opened this issue 15 years ago • 7 comments

Somebody (below) has already taken a stab at this, but it could be supported out-of-the-box to help with load testing, etc.

https://github.com/remy/Socket.io-node-client

aarong avatar Mar 16 '11 19:03 aarong

This is already in the works, and almost complete. I might complete it tonight.

rauchg avatar Mar 16 '11 19:03 rauchg

(if my gf lets me)

rauchg avatar Mar 16 '11 19:03 rauchg

Great! I'm looking forward to finding out just how many users my server will handle.

I imagine the Node Socket.io client will use web sockets, correct? It would be nice if the Node Socket.io client could emulate different browsers by using different transport types. This would give a more realistic idea of server loads, since polling transports are probably more resource intensive than others. Of course, that would probably be much more work to build.

aarong avatar Mar 16 '11 21:03 aarong

It supports all transports

rauchg avatar Mar 16 '11 21:03 rauchg

The main purpose is clean automated testing (the current tests are gross because of the multiple transport differences)

rauchg avatar Mar 16 '11 21:03 rauchg

is this complete? maybe provide an example?

misterMuyiwa avatar Mar 22 '11 14:03 misterMuyiwa

any documentation on how to do this?

polidore avatar Jun 15 '11 03:06 polidore