Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

PubNub
PubNub

119
134
+ 1
227
Socket.IO
Socket.IO

3.3K
2.1K
+ 1
677
Add tool

PubNub vs Socket.IO: What are the differences?

Developers describe PubNub as "Build real-time apps quickly and scale them globally". PubNub makes it easy for you to add real-time capabilities to your apps, without worrying about the infrastructure. Build apps that allow your users to engage in real-time across mobile, browser, desktop and server. On the other hand, Socket.IO is detailed as "Realtime application framework (Node.JS server)". Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

PubNub and Socket.IO can be primarily classified as "Realtime Backend / API" tools.

Some of the features offered by PubNub are:

  • PubNub SDKs support over 50 of the most popular environments, including: iOS, Android, JavaScript, .NET, Java, Ruby, Python, PHP and many more.
  • Data Push - Establish and maintain persistent socket connections to any device (mobile, browser, desktop and server) and push data to global audiences in less than ¼ of a second
  • Presence - Automatically detect when users enter or leave your app and whether machines are online

On the other hand, Socket.IO provides the following key features:

  • Real-time analytics - Push data to clients that gets represented as real-time counters, charts or logs.
  • Binary streaming - Starting in 1.0, it's possible to send any blob back and forth: image, audio, video.
  • Instant messaging and chat - Socket.IO's "Hello world" is a chat app in just a few lines of code.

"Massively scalable & easy to use" is the top reason why over 31 developers like PubNub, while over 186 developers mention "Real-time" as the leading cause for choosing Socket.IO.

Socket.IO is an open source tool with 46.7K GitHub stars and 8.53K GitHub forks. Here's a link to Socket.IO's open source repository on GitHub.

According to the StackShare community, Socket.IO has a broader approval, being mentioned in 555 company stacks & 385 developers stacks; compared to PubNub, which is listed in 43 company stacks and 12 developer stacks.

- No public GitHub repository available -

What is PubNub?

PubNub makes it easy for you to add real-time capabilities to your apps, without worrying about the infrastructure. Build apps that allow your users to engage in real-time across mobile, browser, desktop and server.

What is Socket.IO?

It enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose PubNub?
Why do developers choose Socket.IO?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using PubNub?
What are the cons of using Socket.IO?
    Be the first to leave a con
    What companies use PubNub?
    What companies use Socket.IO?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with PubNub?
    What tools integrate with Socket.IO?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to PubNub and Socket.IO?
    Pusher
    Pusher is the category leader in delightful APIs for app developers building communication and collaboration features.
    SendBird
    SendBird is a Messaging SDK, Chat API, and fully managed chat infrastructure for your mobile apps and websites. Embeddable chat for iOS, Android, JavaScript, Unity, .NET.
    Kafka
    Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
    ably
    It enables any internet enabled device on the planet to publish data streams to any number of subscribers in milliseconds. Our infrastructure spans over 20 data centres globally ensuring low latency performance, redundant storage of all data and commitment to meet our guaranteed quality of service promise.
    Firebase
    Firebase is a cloud service designed to power real-time, collaborative applications. Simply add the Firebase library to your application to gain access to a shared data structure; any changes you make to that data are automatically synchronized with the Firebase cloud and with other clients within milliseconds.
    See all alternatives
    Decisions about PubNub and Socket.IO
    No stack decisions found
    Interest over time
    Reviews of PubNub and Socket.IO
    Avatar of gdi2290
    Co-Founder and CTO at Tipe
    Review ofPubNubPubNub

    PubNub is my goto solution for when I want to use sockets at scale. They have redundant data centers in 14 regions with 99.999% SLA allowing me to build realtime apps for any platform. Also Stephen (PubNub CTO) is Awesome!

    How developers use PubNub and Socket.IO
    Avatar of Tony Manso
    Tony Manso uses Socket.IOSocket.IO

    I use Socket.IO because using HTTP requests for a real-time multiplayer game just blows! Even with websockets, I had to scrunch the data being transmitted down to a bare minimum, and do some cheap compression tricks so that I can send data in JSON format. Otherwise, I would have to resort to sending binary data. I may end up doing that anyway when the time comes that I need to scale.

    How do I use it? Each client opens a socket connection at startup. The server keeps track of these connections, and sends each client the visible portion of the Playfield repeatedly. The clients render this information, while sending requests and commands to the server (join,turn,fire,thrust,bomb,viewport change,etc.) in response to the player's actions. The server uses that to make adjustments to the player's ship on the Playfield.

    Avatar of Trello
    Trello uses Socket.IOSocket.IO

    Where we have browser support (recent Chrome, Firefox, and Safari), we make a WebSocket connection so that the server can push changes made by other people down to browsers listening on the appropriate channels. We use a modified version* of the Socket.io client and server libraries that allows us to keep many thousands of open WebSockets on each of our servers at very little cost in terms of CPU or memory usage. So when anything happens to a board you’re watching, that action is published to our server processes and propagated to your watching browser with very minimal latency, usually well under a second.

    Avatar of Kent Steiner
    Kent Steiner uses Socket.IOSocket.IO

    Socket.IO has a decent community footprint, including integrations with popular JS frameworks, and has fallbacks to maintain an app's services if websockets are not available for some reason. Websockets are an important factor in most of the web-facing apps I build, to provide asynchronous two-way communication between the app and whatever server or data source it is connected to.

    Avatar of Andrew Gatenby
    Andrew Gatenby uses Socket.IOSocket.IO

    Another one that we're not using, yet. But have realtime data updates within our applications and the central API will be a great bit of functionality that gives our clients more control and keep them informed of changes and updates in their stores, in real time.

    Avatar of Volkan Özçelik
    Volkan Özçelik uses PubNubPubNub

    Using websockets is something, scaling a message pipeline to thousands of concurrent connections is something else.

    I trust PubNub with what it does best, and use it as zerotoherojs.com ’s messaging pipeline.

    With PubNub, I have one less problem to think about.

    Avatar of AngeloR
    AngeloR uses Socket.IOSocket.IO

    Socket.io is used as our current multiplayer engine. The existing engine is very simplistic and only utilizes the websocket+http fallback transports and serves as a generic world/zone/screen grouping mechanism for displaying users to each other.

    Avatar of Flutter Health Inc.
    Flutter Health Inc. uses PubNubPubNub

    Flutter uses PubNub for sending push notifications when the users add new posts to the Flutter Community or leave comments.

    How much does PubNub cost?
    How much does Socket.IO cost?
    Pricing unavailable
    News about Socket.IO
    More news