You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a channel abstraction over the existing SSE implementation with pub/sub support.
Design
// Controller — subscribe
function notifications() {
subscribeToChannel(channel="user.#params.userId#", events="notification,alert");
}
// Publish from anywhere
publish(channel="user.42", event="notification", data=SerializeJSON({
title: "New message", body: "You have a new message"
}));
In-memory pub/sub for single-server (wheels.Channel)
DatabaseAdapter for multi-server via _wheels_events table
Activity
Add channel-based pub/sub layer for SSE (issue #1914)
Merge pull request #1940 from wheels-dev/peter/sse-channels-pubsub