resub timeout on publisher ws

This commit is contained in:
Nour Alharithi
2023-12-11 07:05:04 -08:00
parent 27bfef5a1e
commit 1324465d33

View File

@@ -149,6 +149,7 @@ const main = async () => {
accountSubscription = { accountSubscription = {
type: 'websocket', type: 'websocket',
commitment: stateCommitment, commitment: stateCommitment,
resubTimeoutMs: 30_000,
}; };
slotSubscriber = new SlotSubscriber(connection); slotSubscriber = new SlotSubscriber(connection);
await slotSubscriber.subscribe(); await slotSubscriber.subscribe();