From: Mark Felder Date: Wed, 7 Oct 2020 16:47:10 +0000 (-0500) Subject: Transport.connect/7 is deprecated X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8caa6cf91d0d354ce64c1d923112d358295222a2;p=akkoma Transport.connect/7 is deprecated --- diff --git a/lib/transports.ex b/lib/transports.ex index aab7fad99..1ed3a942d 100644 --- a/lib/transports.ex +++ b/lib/transports.ex @@ -31,7 +31,12 @@ defmodule Phoenix.Transports.WebSocket.Raw do case conn do %{halted: false} = conn -> - case Transport.connect(endpoint, handler, transport, __MODULE__, nil, conn.params) do + case Transport.connect(%{ + endpoint: endpoint, + transport: transport, + options: [serializer: nil], + params: conn.params + }) do {:ok, socket} -> {:ok, conn, {__MODULE__, {socket, opts}}}