Why Use Socket Io And Not Just Socket?
I've build before server-client programs (both sides where build in python by far). Recently I started building app using swift and my goal is to add a backend to my apps using pyt
Solution 1:
following Features You will get if you are using Socket.io or socketcluster.io (which is developed on the top of Socket IO)
- scalability :- It will scale horizontally adding more nodes (scale-out) & Linearly(scale-up)
- Reduces Payload size as message payload is compressed
- Authorisation via middle ware functions
- Reconnects Automatically if Connection drops
If You want to use your own implementation then you have to take care of the above features/Solutions to problems which arises when User-base is increases.
Solution 2:
My understanding is Socket.IO isn't necessary anymore because all browsers worthwhile constantly keep each other in check. Socket.IO was for when browsers and servers didn't support the same technology. These days, everything is pretty much supported and Socket is perfectly safe to stick to without the use of Socket.IO. More of a breakdown here - https://codeburst.io/why-you-don-t-need-socket-io-6848f1c871cd
Post a Comment for "Why Use Socket Io And Not Just Socket?"