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

feat: add ws subscribe example - #2638

Merged
DaniPopes merged 1 commit into
gakonst:masterfrom
mattsse:matt/add-ws-example
Oct 18, 2023
Merged

feat: add ws subscribe example#2638
DaniPopes merged 1 commit into
gakonst:masterfrom
mattsse:matt/add-ws-example

Conversation

@mattsse
@mattsse mattsse commented Oct 16, 2023
Copy link
Copy Markdown
Collaborator

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
@mattsse
mattsse force-pushed the matt/add-ws-example branch from bbb5e40 to a9a1339 Compare October 16, 2023 23:35
@DaniPopes
DaniPopes merged commit 519031d into gakonst:master Oct 18, 2023
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

0