Fix incorrect use of connect/1
authorMark Felder <feld@FreeBSD.org>
Wed, 7 Oct 2020 20:06:16 +0000 (15:06 -0500)
committerMark Felder <feld@FreeBSD.org>
Wed, 7 Oct 2020 20:06:16 +0000 (15:06 -0500)
commit822e4472f3de1492aed6948514bc357c9adb934c
tree30e5677911daf747f486e8cc49b04774f7dff0cf
parent8156940a49df17c00c05bfe60223b165f9dc034b
Fix incorrect use of connect/1

Hint from Phoenix 1.4.17, which has a connect/7 shim:

lib/phoenix/socket/transport.ex:

  def connect(endpoint, handler, _transport_name, transport, serializers, params, _pid \\ self()) do
    IO.warn "Phoenix.Socket.Transport.connect/7 is deprecated"

    handler.connect(%{
      endpoint: endpoint,
      transport: transport,
      options: [serializer: serializers],
      params: params
    })
  end
lib/transports.ex