0.1.1 • Published 12 years ago

connect-redis-sse v0.1.1

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

Connect.js Server-Sent Events with Redis

Connect/Express middleware for publishing Server-Sent Events (EventSource) using Redis pub/sub.

Usage

// Attach the middleware
connectRedisSse = require("connect-redis-sse");
app.use(connectRedisSse({redis: yourRedisClient}));

// Set up a subscription to a channel in your route
app.get("/subscribe-me", function (req, res) {
  res.subscribe("channelName");
});
0.1.1

12 years ago

0.1.0

12 years ago