Transport.connect/7 is deprecated
authorMark Felder <feld@FreeBSD.org>
Wed, 7 Oct 2020 16:47:10 +0000 (11:47 -0500)
committerMark Felder <feld@FreeBSD.org>
Wed, 7 Oct 2020 16:47:10 +0000 (11:47 -0500)
lib/transports.ex

index aab7fad99cc14cc2061571bf3a437226d74b581a..1ed3a942d71dad6d43bc80d2120b591b2005743f 100644 (file)
@@ -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}}}