lucsoft
lucsoft2y ago

Handle timeout in WebSocketStream?

How can i handle a timeout exception in an WebSocketStream? Putting a try catch block around it still resullts in an unhandled exception?
2 Replies
MrKleeblatt
MrKleeblatt2y ago
Can you share your code please?
nandi
nandi2w ago
Also getting this using atproto Jetstream (partysocket)
error: Uncaught Error: TIMEOUT
at _ReconnectingWebSocket._handleTimeout (file:///home/v/proto/node_modules/.deno/partysocket@1.0.3/node_modules/partysocket/dist/chunk-KAXDW7R4.mjs:385:45)
at Timeout._onTimeout (file:///home/v/proto/node_modules/.deno/partysocket@1.0.3/node_modules/partysocket/dist/chunk-KAXDW7R4.mjs:375:20)
at cb (ext:deno_node/internal/timers.mjs:64:31)
at callback (ext:deno_web/02_timers.js:58:7)
at eventLoopTick (ext:core/01_core.js:210:13)
error: Uncaught Error: TIMEOUT
at _ReconnectingWebSocket._handleTimeout (file:///home/v/proto/node_modules/.deno/partysocket@1.0.3/node_modules/partysocket/dist/chunk-KAXDW7R4.mjs:385:45)
at Timeout._onTimeout (file:///home/v/proto/node_modules/.deno/partysocket@1.0.3/node_modules/partysocket/dist/chunk-KAXDW7R4.mjs:375:20)
at cb (ext:deno_node/internal/timers.mjs:64:31)
at callback (ext:deno_web/02_timers.js:58:7)
at eventLoopTick (ext:core/01_core.js:210:13)
using jetstream.start(); works in nodejs