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

feat: add ws subscribe example #2638

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Oct 16, 2023

adds an example of how to subscribe to EthEvents

I realized the Borrow requirement is really bad DX when using Arc

fn new<B, M>(filter: Filter, provider: B) -> Event<B, M, Self>
    where
        Self: Sized,
        B: Borrow<M>,
        M: Middleware,
    {

@mattsse mattsse changed the title feat: add ws subscribe feat: add ws subscribe example Oct 16, 2023
@DaniPopes DaniPopes merged commit 519031d into gakonst:master Oct 18, 2023
21 checks passed
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.

None yet

2 participants