WebSocket watchBlocks
with emitOnBegin: true
does not handle connection errors properly
#3511
Open
1 task done
Check existing issues
Viem Version
2.24.1
Current Behavior
When
PublicClient
webSocket
transportwatchBlocks
with theemitOnBegin
option,The script crashes with an error logged to console
Expected Behavior
When
PublicClient
webSocket
transportwatchBlocks
with theemitOnBegin
optionThe
onError
handler is calledSteps To Reproduce
PublicClient
webSocket
transport,watchBlocks
with theemitOnBegin
optionLink to Minimal Reproducible Example
https://github.com/oskarlh/viem-bug
Anything else?
No response
The text was updated successfully, but these errors were encountered: