What is the difference between Socket.IO and Firebase?

firebase, node.js, socket.io

Solution

There actually is the difference.

Socket.io is a javascript library to manage sockets. In a web-chat example, you create sockets:

- client(s) to server

- Server to client(s)

That is, you control all the end-points, and use socket.io as a tool to communicate between your end-points.

In contrast, using firebase you only focus around 1 (client to server)

Pros and Cons of using service versus own infrastructure is a different subject, and heavily opinionated.

Problem

I watched a codeschool tutorial on Node.js and they imitated a chat server using Socket.IO in their tutorial. I am also under the impression that Firebase does the same thing. What is the difference between the two, if there are any?

Original source