Providers
SocketBlockSubscriber
A SocketBlockSubscriber listens for newHeads
events and emits "block"
events.
Extends
Accessors
filter
The filter.
Returns
any
[]
Source
providers/provider-socket.ts:46
Methods
pause()
Pause the subscriber.
Parameters
Parameter | Type | Description |
---|---|---|
dropWhilePaused ? | boolean | Whether to drop logs while paused. |
Returns
void
Inherited from
Source
providers/provider-socket.ts:98
resume()
Resume the subscriber.
Returns
void
Inherited from
Source
providers/provider-socket.ts:111
start()
Start the subscriber.
Returns
void
Inherited from
Source
providers/provider-socket.ts:76
stop()
Stop the subscriber.
Returns
void
Inherited from
Source
Was this page helpful?