0

The title pretty muchs sums it up... I am wondering if there is a way to use socket.io without node.js

2
  • 2
    Wrong question: what are you trying to do? Because maybe socket.io isn't even the right tool for the job and standard websockets without the 1.5Mb of socket.io on top is plenty. Commented Aug 28, 2019 at 21:57
  • Could you be more specific about what you're trying to do? Is your server using a language other than Javascript? Commented Aug 28, 2019 at 22:02

1 Answer 1

1

socket.io is a library that connects a browser web pages to some server somewhere. There MUST be a socket.io server somewhere that does what you want that you can connect to.

That socket.io server does not have to be written using node.js. There is socket.io support for other languages or environments. The protocol and data format is fully documented so implementations can be written for any environment. For example, here's a socket.io server implementation in C++.

You can look on github for various server implementations: https://github.com/search?q=socket.io+server.

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

2 Comments

I think you should add github's search result for "socket.io server" because it's useful to find one for your language: github.com/search?q=socket.io+server
Also, the protocol is fully documented in github.com/socketio/socket.io-protocol and github.com/socketio/engine.io-protocol so in theory you can implement a server yourself in any language

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.