mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Transport.connect/7 is deprecated
This commit is contained in:
parent
b0198d3435
commit
8caa6cf91d
1 changed files with 6 additions and 1 deletions
|
@ -31,7 +31,12 @@ defmodule Phoenix.Transports.WebSocket.Raw do
|
||||||
|
|
||||||
case conn do
|
case conn do
|
||||||
%{halted: false} = conn ->
|
%{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, socket} ->
|
||||||
{:ok, conn, {__MODULE__, {socket, opts}}}
|
{:ok, conn, {__MODULE__, {socket, opts}}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue