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

Handle ping/pong messages for Ws provider #163

Merged
merged 1 commit into from
Jan 15, 2021

Conversation

SamWilsn
Copy link
Contributor

Motivation

Fixes disconnects with WebSocket subscriptions when Geth sends a Ping message.

Solution

Reply with a Pong message, and ignore Pong messages since they can be spuriously generated.

@prestwich
Copy link
Collaborator

LGTM

Copy link
Owner

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch, thank you

@gakonst gakonst merged commit 8eafe81 into gakonst:master Jan 15, 2021
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
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.

3 participants