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

Add wsbackend client #49

Closed
wants to merge 4 commits into from
Closed

Add wsbackend client #49

wants to merge 4 commits into from

Conversation

nguyer
Copy link
Contributor

@nguyer nguyer commented Oct 3, 2023

This PR adds a JSONRPC WebSocket client. It is fairly basic in its features, but gives the ability to create subscriptions and listen for blocks.

TODO:

  • Additional unit tests to cover new code

Signed-off-by: Nicko Guyer <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2023

Codecov Report

Merging #49 (c15f078) into main (be29668) will decrease coverage by 0.08%.
The diff coverage is 98.19%.

@@             Coverage Diff             @@
##              main      #49      +/-   ##
===========================================
- Coverage   100.00%   99.92%   -0.08%     
===========================================
  Files           34       35       +1     
  Lines         2707     2818     +111     
===========================================
+ Hits          2707     2816     +109     
- Misses           0        1       +1     
- Partials         0        1       +1     
Files Coverage Δ
pkg/ethtypes/hexinteger.go 100.00% <100.00%> (ø)
pkg/rpcbackend/backend.go 100.00% <ø> (ø)
pkg/rpcbackend/wsbackend.go 97.84% <97.84%> (ø)

Signed-off-by: Nicko Guyer <[email protected]>
Signed-off-by: Nicko Guyer <[email protected]>
@nguyer nguyer closed this Oct 3, 2023
@nguyer nguyer deleted the wsbackend branch October 3, 2023 20:19
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

Successfully merging this pull request may close these issues.

2 participants