Commit 3b1cfd42 authored by Rob Colbert's avatar Rob Colbert

send statuscard update on user-specific channel

parent 81e8b329
......@@ -535,7 +535,7 @@ const startWorker = (workerId) => {
app.use(errorMiddleware);
app.get('/api/v1/streaming/statuscard', (req, res) => {
const channel = `statuscard`;
const channel = `statuscard:${req.accountId}`;
streamFrom(channel, req, streamToHttp(req, res), streamHttpEnd(req, subscriptionHeartbeat(channel)));
});
......@@ -614,7 +614,7 @@ const startWorker = (workerId) => {
switch(location.query.stream) {
case 'statuscard':
channel = `statuscard`;
channel = `statuscard:${req.accountId}`;
streamFrom(channel, req, streamToWs(req, ws), streamWsEnd(req, ws, subscriptionHeartbeat(channel)));
break;
case 'user':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment