Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Socket.IO and Firebase?

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?

like image 894
user3587754 Avatar asked Feb 23 '15 14:02

user3587754


1 Answers

There actually is the difference.

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

  1. client(s) to server
  2. 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.

like image 139
alandarev Avatar answered Oct 13 '22 04:10

alandarev