SDKs
Every PubNub SDK connects to the same real-time network and exposes the same core API, so the concepts you learn in one carry over to the rest. Pick the SDK for the platform you build on and follow its getting started guide.
Web and server
Browsers, Node.js, and backend services.
- JavaScriptVersion 13.0.3Platform: Node.js 22+, modern browsers, React Install with
npm install pubnub - PythonVersion 10.7.2Platform: Python 3.9+Install with
pip install pubnub - AsyncioVersion 10.7.2Platform: Python 3.9+ with asyncioInstall with
pip install pubnub - JavaVersion 13.4.4Platform: Android, JVMInstall with Add dependency to Gradle or Maven
- KotlinVersion 13.4.4Platform: Android, JVMInstall with Add dependency to Gradle or Maven
- DartVersion 8.0.3Platform: Flutter, standalone DartInstall with
dart pub add pubnub - GoVersion 10.0.0Platform: Go 1.25+Install with
go get github.com/pubnub/go/v9 - RubyVersion 6.1.1Platform: RubyInstall with
gem install pubnub - PHPVersion 9.0.3Platform: PHPInstall with
composer require pubnub/pubnub - RustVersion 0.8.0Platform: RustInstall with
cargo add pubnub - C#Version 9.0.0Platform: .NETInstall with
dotnet add package PubNub - REST APIPlatform: Any HTTP client
Mobile
iOS, Android, and cross-platform apps.
- JavaVersion 13.4.4Platform: Android, JVMInstall with Add dependency to Gradle or Maven
- KotlinVersion 13.4.4Platform: Android, JVMInstall with Add dependency to Gradle or Maven
- DartVersion 8.0.3Platform: Flutter, standalone DartInstall with
dart pub add pubnub - SwiftVersion 10.2.0Platform: iOS, macOS, tvOS, watchOS (Xcode 14+)Install with Swift Package Manager or CocoaPods
- Objective-CVersion 7.0.4Platform: iOS, macOSInstall with
pod install PubNub
Game engines
Multiplayer state and in-game chat.
- UnityVersion 9.5.0Platform: Unity EditorInstall with Unity Package Manager
- Unreal EngineVersion 2.1.0Platform: Unreal EditorInstall with Plugin
Embedded and IoT
None of the embedded SDKs uses a package manager. Clone the repository or download a release instead. For new projects, use the C SDK. The other embedded SDKs build on the C-Core (legacy) library.
- CVersion 1.0.0Platform: Linux, macOS, Windows, FreeRTOS, ESP-IDF
- C-Core (legacy)Version 7.3.5Platform: Portable C
- POSIX C (legacy)Version 7.3.5Platform: Linux, macOS
- POSIX C++ (legacy)Version 7.3.5Platform: Linux, macOS
- Windows C (legacy)Version 7.3.5Platform: Windows
- Windows C++ (legacy)Version 7.3.5Platform: Windows
- FreeRTOS (legacy)Version 7.3.5Platform: FreeRTOS
- Mbed (legacy)Version 7.3.5Platform: ARM Mbed OS
Chat SDKs
Higher-level chat APIs layered on the Core SDKs above. Each one ships channels, threads, mentions, typing indicators, and read receipts as first-class concepts.
- JavaScript Chat SDKVersion 1.0.4Install with
npm install @pubnub/chat - Kotlin Chat SDKVersion 1.0.1Install with Add dependency to Gradle or Maven
- Swift Chat SDKVersion 1.0.0Install with Swift Package Manager
- Unity Chat SDKVersion 2.0.1
- Unreal Chat SDKVersion 1.0.3
Community-supported SDKs
These SDKs are no longer officially maintained by PubNub. They may not support the latest API features. Community contributions are welcome. Contact support for information.
| SDK | Source |
|---|---|
| Android (legacy) | Docs |
| AngularJS | GitHub |
| Angular 2+ | GitHub |
| Arduino | GitHub |
| Cocoa Objective-C (legacy) | Docs |
| Cocoa Swift (legacy) | Docs |
| Lua | Docs |
| React | Docs |
| Redux | Docs |
| Twisted | Docs |
| Vue | GitHub |