Notification Server
This is a developer module that enables real-time notifications by connecting to an external notification server. It provides APIs for publishing notifications and managing communication channels, offering a self-hosted alternative to SaaS messaging services.
Notification Server is a developer module that provides real-time notification capabilities by integrating with an external notification server through HTTP and WebSocket protocols.
Important
This is a developer module that provides APIs and services for integrating real-time notifications. It will not do anything on its own and requires custom code or other modules to utilize its functionality.
Features
- HTTP API Client - Publishing notifications and managing channels
- WebSocket Integration - Real-time bidirectional communication with browser clients
- Channel Management - Creating channels and managing access control
- Client Management - Handling WebSocket client connections
- Demo Interfaces - Testing functionality (optional demo module)
Self-Hosted Alternative
The Notification Server is a self-hosted solution that provides an alternative to SaaS-based real-time messaging services like Pusher, Firebase, or Ably. By running your own notification server, you maintain full control over your data, avoid vendor lock-in, and can customize the solution to meet your specific needs.
Requirements
- External Notification Server - Requires a running instance of the Notification Server or compatible API
- Redis - The notification server requires Redis for data storage
Easy Setup with DDEV
For Drupal developers using DDEV, the notification server can be easily added using the DDEV addon:
ddev add-on get d34dman/ddev-notification-server ddev restart
Usage
Use the notification_server.client service to publish messages:
$notification_client = \Drupal::service('notification_server.client');
$notification_client->publishNotification('channel_name', 'Hello, World!');Perfect for real-time updates, push notifications, chat applications, and real-time dashboards.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha2 | Pre-release | 10–11 | Fix crashes after enabling module | Aug 23, 2025 | |
| 1.0.0-alpha1 | Pre-release | 10–11 | Initial release for testing waters! | Aug 16, 2025 | |
| 1.x-dev | Dev | 10–11 | Jun 18, 2025 |