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

[warning] unhandled message %{"type" => "pong"} #29

Open
michaelcaterisano opened this issue Jun 17, 2024 · 0 comments
Open

[warning] unhandled message %{"type" => "pong"} #29

michaelcaterisano opened this issue Jun 17, 2024 · 0 comments

Comments

@michaelcaterisano
Copy link

michaelcaterisano commented Jun 17, 2024

I'm seeing [warning] unhandled message %{"type" => "pong"} in the console. I wouldn't expect my client (Apollo Client) to be sending a pong message, but I guess it is? Would it make sense to add a handle_inbound clause to handle pong messages, and if so what should its return value be? I was thinking the following would be appropriate.

def handle_inbound(%{"type" => "pong"}, socket), do: {:ok, socket}
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

No branches or pull requests

1 participant