You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question: Do PublicClient instances created with webSocket transport need explicit closing, or does Viem handle their cleanup automatically? How should one manage these for efficient resource use?
Looking for guidance on resource management for these clients.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context: I'm using the
PublicClient
provided by Viem, instantiated with a webSocket transport like so:Question: Do PublicClient instances created with webSocket transport need explicit closing, or does Viem handle their cleanup automatically? How should one manage these for efficient resource use?
Looking for guidance on resource management for these clients.
Beta Was this translation helpful? Give feedback.
All reactions