You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
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"}
The text was updated successfully, but these errors were encountered:
Thanks for the awesome lib!
I think I found a small bug, in transport/websocket.ex, there is
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"}
The text was updated successfully, but these errors were encountered: