Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants