Browse Source

[streaming] disable chat endpoints.

develop
Fosco Marotto 3 months ago
parent
commit
21096c523d
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      streaming/index.js

+ 0
- 8
streaming/index.js View File

@ -536,11 +536,6 @@ const startWorker = (workerId) => {
streamFrom(`timeline:${req.accountId}`, req, streamToHttp(req, res), streamHttpEnd(req), false, true);
});
app.get('/api/v1/streaming/chat_messages', (req, res) => {
const channel = `chat_messages:1`;
streamFrom(channel, req, streamToHttp(req, res), streamHttpEnd(req, subscriptionHeartbeat(channel)));
});
const wss = new WebSocketServer({ server, verifyClient: wsVerifyClient });
wss.on('connection', (ws, req) => {
@ -562,9 +557,6 @@ const startWorker = (workerId) => {
case 'user:notification':
streamFrom(`timeline:${req.accountId}`, req, streamToWs(req, ws), streamWsEnd(req, ws), false, true);
break;
case 'chat_messages':
streamFrom(`chat_messages:${req.accountId}`, req, streamToWs(req, ws), streamWsEnd(req, ws), false, true);
break;
default:
ws.close();
}


Loading…
Cancel
Save