Live Notifications & Activity Feeds
Push notifications, order updates, social activity feeds, and system alerts in real time. No polling, no delays — events arrive the instant they happen on your server.
Implementation
example.js
// Server-side: publish a notification
import { Apinator } from '@apinator/server'
const realtime = new Apinator({
appId: 'your-app-id',
key: 'your-key',
secret: 'your-secret',
cluster: 'us'
})
// Send notification to a specific user
await realtime.trigger({
name: 'notification',
channel: 'private-user-123',
data: JSON.stringify({
title: 'Order shipped',
body: 'Your order #4821 is on the way!',
url: '/orders/4821'
})
})Why Apinator for live notifications & activity feeds
Per-user private channels for targeted notification delivery
Publish from any backend — Node.js, Python, Go, PHP
Exclude the sender with socket_id so users never see their own echo
Automatic reconnection and resubscription (events sent while offline are not replayed)
Publish one event to up to 100 channels in one call
Channel introspection to check if a user is currently connected
Other use cases
From the blog
How to Add Realtime to a Laravel App
Add WebSocket-powered realtime features to your Laravel application — publishing events from controllers and subscribing from the frontend with a few lines of code.
What Is a Pub/Sub Channel?
Pub/sub channels are the core abstraction in realtime systems — they let publishers send messages to many subscribers without knowing who's listening. Here's how they work.
What Is a WebSocket?
WebSockets let servers push data to clients the moment it changes — no polling, no waiting. Here's how they work, what they're good for, and when to use them.
Ready to build live notifications & activity feeds?
Get started in minutes. Completely free, no credit card required.