Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

websocket and ping messages #48

@comboy

Description

@comboy

Thanks for the awesome lib!

I think I found a small bug, in transport/websocket.ex, there is

  def websocket_handle({frame_type, raw_message}, _conn_state, state)
  when frame_type in [:text, :binary] do

but it seems that frame_type may also be :ping, with raw_message being a few random bytes, and I guess we then should respond with :pong and those few random bytes. Currently websocket_handle function clause for ping frame_type seems to be missing. I'm just learning elixir and it seems that my elixir-fu is not yet good enough to fix it.

e.g. msg: {:ping, "cLyY"}

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