Ship in-app and live chat in days.
PubNub gives your team the tools to launch high-performance chat rapidly, manage complexity as you grow, and eliminate the backend overhead.
You build the experience. Let us handle the infrastructure.
Launch Faster with Production-Ready Chat Infrastructure
Skip the boilerplate and build fast, reliable chat with a backend that lets you focus on core functionality.
Simple APIs, SDKs & Quickstarts
Build your MVP fast with simple SDKs for JavaScript, Kotlin, Swift, Unity, and more. Our Quickstarts help you validate ideas and iterate in minutes.
Live Chat Building Blocks
Leverage production-ready features, typing indicators, presence, message history, read receipts, reactions, and threads, which are all available out of the box in our SDKs.
Push Notifications
A straightforward push system with support for FCM, APNs, and fallback delivery—built to handle the majority of use cases without added complexity.
Launch faster with production-ready chat Infrastructure
Skip the boilerplate and build fast, reliable chat with a backend that lets you focus on core functionality.
Infrastructure You Don’t Have to Think About
No sharding, no message brokers, no server maintenance—just a globally distributed pub/sub network trusted by mission-critical apps.
Moderation & Role-Based Permissions
Enforce chat policies with fine-grained access control and security features built for compliance and user safety.
Real-Time Channel Monitoring
Inspect live message flow, monitor user activity, and debug issues in real time to stay ahead of disruptions.
Presence & Typing Indicators
Drive real-time engagement with online status and channel occupancy, session tracking, and typing events-all without extra engineering effort
Real-time chat, step-by step
Five steps from your SDK to production chat without standing up messaging infrastructure
1
Connect
Create a keyset and initialize with the SDK of your choice (JS, Kotlin, Unity, and more). Or install the PubNub MCP Server in your coding client for fast implementation.
2
Build
Implement the features chat applications depend on without needing to build your own backend: presence, typing, history, reactions, threads, push notifications, and more.
3
Secure & Operate
Enable Access Manager for controlled authorization and access. Utilize Channel Monitor for live visibility. Add AI Moderation to improve the chat experience.
4
Ship & Extend
PubNub's global network handles unexpected spikes and scales as your platform grows. Integrate third-party APIs with Functions and power decisions with real-time intelligence.
DEMO
Ship live in-app messaging - fast.
Learn how PubNub gives teams the tools to launch high-performance chat with a live demo of group and 1:1 chat—typing, presence, threads, reactions, and more—all built using our Chat SDK
Frequently asked questions
How does the PubNub platform work?
PubNub is a real-time communication platform that provides cloud-based infrastructure and APIs to instantly send and receive messages between devices, apps, or services. Built on a global ultra-low-latency data stream network, it lets developers create fast, interactive experiences without managing servers or complex back-end systems.
PubNub uses a publish/subscribe (pub/sub) messaging pattern. Messages—like chat updates, IoT data, or collaborative edits—are published to channels and instantly received by all subscribed clients, enabling real-time communication across millions of devices and users.
PubNub offers:
- Real-time messaging, presence detection, state sync, chat, and collaboration
- Low-latency IoT communication between devices and the cloud
- Live updates and real-time dashboards
- SDKs for web, mobile, and IoT platforms
- Cloud-native, globally distributed infrastructure for scale and reliability
PubNub handles infrastructure, message routing, and security
How does PubNub ensure message delivery under poor network conditions or device reconnection scenarios?
PubNub ensures reliable message delivery during poor network conditions or reconnections through message persistence and timetoken-based catch-up. Message persistence ensures no data is lost even if a device is offline for an extended period. Timetoken-based catch-up enables precise resumption, minimizing the risk of duplicate or missed messages. Built-in reconnection logic in the SDKs ensure that most network issues are handled seamlessly, so end users rarely notice disruptions. Additionally, the low client complexity—thanks to PubNub abstracting much of the logic within its SDKs.
With PubNub, there's no need to manually implement complex reconnection logic or message buffering
Does Pubnub offer edge network capabilities or Points of Presence (PoPs) in key regions?
Yes, PubNub has a global edge network with Points of Presence (PoPs) in key regions: North America, Asia, Europe, and South America. This ensures data is routed through the closest servers to users, minimizing latency and improving real-time performance.
On average, PubNub delivers messages in under 100 milliseconds worldwide, thanks to its optimized infrastructure and intelligent routing.
PubNub also offers a 99.999% uptime SLA (Service Level Agreement), meaning it's built for high availability and reliability, even under heavy load or across distributed geographies
What software architecture pattern does PubNub use?
PubNub utilizes a Publish/Subscribe (Pub/Sub) messaging model to deliver real-time communication across devices, eliminating the need for users to manage infrastructure. Publishers send messages to named channels (topics), and all subscribed clients receive them instantly. This decouples senders from receivers, enabling scalable, low-latency messaging with no need to handle servers, sockets, or scaling logic.
PubNub’s architectural foundation is a highly optimized, globally distributed Publish/Subscribe system designed for real-time messaging at planetary scale. It abstracts away the complexity of scaling, securing, and managing real-time infrastructure, allowing developers to focus purely on building applications that react instantly to data. By combining a robust Pub/Sub backbone with layers like user access control, message persistence (history), presence tracking (state detection), and edge functions (serverless), PubNub enables a broad range of real-time use cases (chat, live dashboards, multiplayer games, streaming & location tracking) with minimal development and operational overhead.
Channel-Based, Real-Time Pub/Sub Architecture
PubNub structures communication around string-based channels, enabling granular or broad message targeting. Channels can represent chat rooms, IoT devices, user sessions, or system events, allowing millions of concurrent streams without conflict.
Clients subscribed to a channel receive published messages within ~100 milliseconds (ultra-low latency), thanks to PubNub’s globally distributed edge network, which minimizes delay by routing through the nearest data center(PoP).
Unlike request/response systems, PubNub’s Pub/Sub model is asynchronous — messages are pushed to subscribers in real time, enabling use cases like chat, live dashboards, multiplayer games, and location tracking.
The decoupled architecture supports massive scalability: publishers don’t track subscribers, and channel topologies are dynamic. Edge-based stateless routing supports ephemeral messaging, while TLS and PubNub Access Manager (PAM) provide encryption and fine-grained, token-based access control.
Beyond core messaging, PubNub offers presence detection, message persistence, and PubNub Functions — a serverless layer injecting logic (e.g., filtering, enrichment, validation) directly into message streams without extra backend infrastructure.
This architecture powers real-world applications such as live support chat, IoT telemetry, collaborative editing, and real-time asset tracking.
Does PubNub support JSON Web Tokens (JWT) for authentication and authorization workflows?
Yes, PubNub has JSON Web Tokens support in multiple areas:
PubNub Functions JWT Module
PubNub Functions includes a built-in JWT SDK library for generating and verifying JSON Web Tokens. The jsonwebtoken module is available with the following require statement:
The JWT module provides three main methods:
- decode to extract and return the payload and optionally the header from a token without verifying its signature or authenticity
- verify to check the validity of a given token against a secret key, ensuring it hasn't been altered and meets expected conditions
- sign to create and sign a new JWT with the provided payload and secret key
Access Manager JWT Integration
PubNub's Access Manager (PAM) supports JWT for authentication and authorization. When using JWT, PubNub validates the token to ensure it matches the required permissions for channels, groups, and resources. This allows fine-grained access control without storing session states on the server.
Recent Functions Updates
PubNub has recently added new built-in libraries to support JWT (along with UUID and JSONPath Plus) in Functions v2
Is message latency the same on the free tier as in paid plans?
PubNub's infrastructure provides consistent performance across all account types. With 15+ global Points of Presence and automatic scaling, latency stays under 100ms and uptime meets a 99.999% SLA1.
The platform uses a globally distributed edge network with multiple PoPs for ultra-low latency and regional failover—no custom infrastructure needed2. This infrastructure delivers enterprise-grade SLAs, multitenant isolation, and built-in observability so you can track latency, delivery, and usage in real time.
The latency performance is determined by PubNub's global network infrastructure rather than account tier, as the same edge network and Points of Presence serve all users.
Get started with PubNub Chat
Let PubNub handle scaling and security so you can ship chat in days.
Start building today.
Scale Without Re-Engineering
PubNub is built for scale, so you don’t have to re-architect when your user base grows or your requirements evolve.
Integrate with AI, Analytics & Business Systems
Use PubNub Functions or third-party APIs to plug in bots, CRMs, analytics platforms, transcription, and translation tools.
Personalised, Context-Aware Chat
Create dynamic, AI-native chat experiences with workflows that adapt based on user behavior and real-time context.
Infrastructure You Don’t Have to Think About
No sharding, no message brokers, no server maintenance—just a globally distributed pub/sub network trusted by mission-critical apps.
Why PubNub?
Accelerate development with prebuilt SDKs, components, and integrations
Maintain control with built-in moderation, observability, and permissions
Confidently scale from MVP to millions of concurrent users
Simplify operations with built-in security, moderation, and observability
Backed by demos, tutorials, and a proven track record powering chat at global scale
Speak to an Expert
Whether you build apps for digital healthcare, fintech, ecommerce, or the gaming industry, now’s the time to enhance your user experience with real-time chat. Connect with our experts to learn how you can build secure, scalable, and interactive chat experiences.