Description:
Implement a WebSocket connection to stream silent blocks to the client whenever a new block is found and indexed. This will eliminate the need for the client to keep polling for new blocks.
Tasks:
Set up a WebSocket server.
Implement a method to broadcast new silent blocks to connected clients.
Add a function to src/block-data-providers/base-block-data-provider.abstract.ts that emits an event whenever a new block is indexed.
On receiving the event, the SilentBlocksService should create and stream the silent block to all connected clients.
Ensure the WebSocket connection is properly managed and closed when clients disconnect.
Description: Implement a WebSocket connection to stream silent blocks to the client whenever a new block is found and indexed. This will eliminate the need for the client to keep polling for new blocks.
Tasks:
src/block-data-providers/base-block-data-provider.abstract.ts
that emits an event whenever a new block is indexed.SilentBlocksService
should create and stream the silent block to all connected clients.