[streaming] disable chat endpoints.
This commit is contained in:
parent
dcbbd51d2a
commit
21096c523d
@ -536,11 +536,6 @@ const startWorker = (workerId) => {
|
|||||||
streamFrom(`timeline:${req.accountId}`, req, streamToHttp(req, res), streamHttpEnd(req), false, true);
|
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 });
|
const wss = new WebSocketServer({ server, verifyClient: wsVerifyClient });
|
||||||
|
|
||||||
wss.on('connection', (ws, req) => {
|
wss.on('connection', (ws, req) => {
|
||||||
@ -562,9 +557,6 @@ const startWorker = (workerId) => {
|
|||||||
case 'user:notification':
|
case 'user:notification':
|
||||||
streamFrom(`timeline:${req.accountId}`, req, streamToWs(req, ws), streamWsEnd(req, ws), false, true);
|
streamFrom(`timeline:${req.accountId}`, req, streamToWs(req, ws), streamWsEnd(req, ws), false, true);
|
||||||
break;
|
break;
|
||||||
case 'chat_messages':
|
|
||||||
streamFrom(`chat_messages:${req.accountId}`, req, streamToWs(req, ws), streamWsEnd(req, ws), false, true);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
ws.close();
|
ws.close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user