Merge pull request #64 from drift-labs/master

buffered amount threshold
This commit is contained in:
Nour Alharithi
2024-01-17 21:51:38 -08:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ async function main() {
const subscribers = channelSubscribers.get(subscribedChannel);
if (subscribers) {
subscribers.forEach((ws) => {
if (ws.readyState === WebSocket.OPEN && ws.bufferedAmount < 100)
if (ws.readyState === WebSocket.OPEN && ws.bufferedAmount < 300000)
ws.send(
JSON.stringify({ channel: subscribedChannel, data: message })
);