It seems like Firebase removes the backend completely. It just pushes data sent to it to all clients. This means data is always handled client side.
So instead of (Client)->[Your Server]->(All Clients), Firebase replaces your server so you effectively get (Client)->(All Clients).
This means if you wanted to save something you would have to make the (Client)->[Your Server] request separately.