4

If I add dozens of Firebase references using the ios sdk, does it pool or create multiple sockets or does it instead just add more observers to the same socket connection?

e.g. create a bunch of these references

var ref = Firebase(url:"https://docs-examples.firebaseio.com/web/saving-data/fireblog/posts")
var ref = Firebase(url:"https://docs-examples.firebaseio.com/web/saving-data/fireblog/posts2")
..etc.

and create an observer for each reference

Will this create multiple connections? Do I have to worry about performance if I open dozens of these observers?

MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
  • 1
    Firebase uses a single (Websocket) connection for each open browser tab/window. References are a lightweight mechanism on top of that single connection. This question has been asked before, so I'll vote to close it as a duplicate once I find the original. – Frank van Puffelen Mar 14 '15 at 15:03
  • possible duplicate of [How the Connection is calculated in Firebase](http://stackoverflow.com/questions/19466522/how-the-connection-is-calculated-in-firebase) – Frank van Puffelen Mar 14 '15 at 15:06

0 Answers0