Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement WebSocket to Stream Silent Blocks #45

Closed
theanmolsharma opened this issue Sep 20, 2024 · 2 comments
Closed

Implement WebSocket to Stream Silent Blocks #45

theanmolsharma opened this issue Sep 20, 2024 · 2 comments

Comments

@theanmolsharma
Copy link
Collaborator

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:

  1. Set up a WebSocket server.
  2. Implement a method to broadcast new silent blocks to connected clients.
  3. Add a function to src/block-data-providers/base-block-data-provider.abstract.ts that emits an event whenever a new block is indexed.
  4. On receiving the event, the SilentBlocksService should create and stream the silent block to all connected clients.
  5. Ensure the WebSocket connection is properly managed and closed when clients disconnect.
@aruokhai
Copy link
Contributor

@theanmolsharma , can this can be closed ?

@theanmolsharma
Copy link
Collaborator Author

Merged in #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants