Skip to content

Websocket does not properly subscribe / unsubscribe to event logs #388

@OscBacon

Description

@OscBacon

Image

useWatchContractEvent from wagmi only watches / subscribes to event logs when using a proper websocket transport (note: it does not work with http).

See use here:
https://github.com/owlprotocol/veraswap/blob/bfc8f37bd66bb0607ab55873d470a0f157c5875a/packages/veraswap-app/src/routes/index.tsx#L215-L226

From what I understand, the websocket you expose for op chain a and b doesn't fully behave like the underlying anvil rpc websockets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions