Azolo/websockex

Callback mismatch for @callback handle_ping/2 in WebSockex behaviour.

Closed this issue · 2 comments

I'm running dialyzer on a project using websockex and running into an error. Does anyone have any suggestions on how to fix it?

Cheers

lib/websockex.ex:8:callback_type_mismatch
Callback mismatch for @callback handle_ping/2 in WebSockex behaviour.

Expected type:

  {:close, _}
  | {:ok, _}
  | {:close, {integer(), binary()}, _}
  | {:reply, {:binary, binary()} | {:ping, binary()} | {:text, binary()}, _}


Actual type:
{:reply, :pong | {:pong, _}, _}
Azolo commented

Looks like a bug in the spec.

Thanks, I'll look into it.

Awesome. Thanks @Azolo!