projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0198d3
)
Transport.connect/7 is deprecated
author
Mark Felder
<feld@FreeBSD.org>
Wed, 7 Oct 2020 16:47:10 +0000
(11:47 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Wed, 7 Oct 2020 16:47:10 +0000
(11:47 -0500)
lib/transports.ex
patch
|
blob
|
history
diff --git
a/lib/transports.ex
b/lib/transports.ex
index aab7fad99cc14cc2061571bf3a437226d74b581a..1ed3a942d71dad6d43bc80d2120b591b2005743f 100644
(file)
--- 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}}}