Developer SDKs, managed cloud infrastructure, and self-hosted servers for building instant, bidirectional communication into web, mobile, and IoT applications.
Get Started · Documentation · Website
PieSocket is a realtime communication platform that gives developers the SDKs and server infrastructure to build live features into their applications.
Use PieSocket's managed cloud or run your own self-hosted server. Either way, you can add WebSocket-powered messaging, notifications, presence, and realtime data exchange without building the entire realtime stack from scratch.
- Live chat and messaging: power chat rooms, direct messages, and support experiences.
- Realtime notifications: deliver in-app alerts and activity updates instantly.
- Presence: show who's online and keep participant lists in sync.
- Collaborative applications: synchronize shared state and user activity.
- Live dashboards: stream metrics, events, and changing data without polling.
- Multiplayer experiences: exchange low-latency events between connected clients.
- Realtime integrations: connect your backend, services, and clients through events.
Use an official SDK or connect with any standard WebSocket client.
Platform Repository / Guide
JavaScript piesocket-js
Node.js piesocket-nodejs
Android / Java piesocket-android
iOS / macOS / Swift piesocket-swift
Flutter piesocket-flutter
React Native React Native guide
Laravel Laravel Echo integration
Any WebSocket client WebSocket API
See the Getting Started guide for installation instructions and platform-specific examples.
Get started quickly with PieSocket's managed realtime infrastructure.
Create a cluster, get your apiKey and clusterId, and connect using
an SDK.
Need to run realtime infrastructure in your own environment? PieSocket also offers a self-hosted server, so you can deploy and operate your own cluster.
Learn about self-hosted PieSocket
- Create an account and a PieSocket cluster.
- Find your
apiKeyandclusterIdin the cluster dashboard. - Install the SDK for your platform.
- Connect, subscribe to a channel, and start exchanging events.
Install the SDK:
npm i piesocket-js@7Connect and subscribe to a channel:
import PieSocket from 'piesocket-js';
const pieSocket = new PieSocket({
version: 4,
clusterId: 'YOUR_CLUSTER_ID',
apiKey: 'YOUR_API_KEY'
});
const channel = await pieSocket.subscribe('my-channel');
channel.listen('new_message', (data) => {
console.log('Received:', data);
});
channel.publish('new_message', {
message: 'Hello, realtime!'
});For backend publishing, use the REST API. Keep secret credentials on your server and follow the recommended authentication approach for production applications.
- WebSocket-based realtime Pub/Sub
- Client-to-client messaging
- Backend-to-client event publishing
- Channels and rooms
- Presence and system events
- SDKs for popular web and mobile platforms
- REST API for backend integrations
- Managed cloud and self-hosted deployment options
Explore the PieSocket documentation for setup guides, API references, and next steps.
This GitHub organization hosts official PieSocket SDKs, server software, examples, and related developer tools.
Issues, bug reports, and pull requests are welcome. Before contributing:
- Check the relevant repository's contribution guidelines.
- Open an issue to discuss significant changes.
- Include reproduction steps for bug reports.
- Add tests or examples when changing behavior.
Please check each repository for its license and contribution guidelines.
- Getting Started
- PieSocket Documentation
- WebSocket API
- Laravel Echo
- Self-hosted PieSocket
- Website
- GitHub organization
Realtime made easy as pie.