0

Let me explain the setup a bit more. I have socket.io running inside a node.js server.

I want to connect to this server from another node.js program that is running in the console (outside the browser).

All examples that I have seen so far only talk about a socket.io client that is running inside a browser, but I want to connect to a console program which is outside the browser.

Is it possible to do something like this?

1 Answer 1

3

No problem, use socket.io-client

more info here: https://github.com/LearnBoost/socket.io-client

Sign up to request clarification or add additional context in comments.

2 Comments

Damn.. I don't know how I missed it. Thanks.
make sure to also check out engine.io, which is socket.io's underlying communication layer if you just want to abstract WebSocket communication

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.