You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -272,7 +272,7 @@ defmodule Phoenix.Socket.Transport do
272
272
273
273
other->
274
274
raiseArgumentError,
275
-
":connect_info keys are expected to be one of :peer_data, :trace_context_headers, :x_headers, :uri, or {:session, config}, "<>
275
+
":connect_info keys are expected to be one of :peer_data, :trace_context_headers, :x_headers, :user_agent, :sec_websocket_protocol, :uri, or {:session, config}, "<>
276
276
"optionally followed by custom keyword pairs, got: #{inspect(other)}"
277
277
end)
278
278
@@ -462,6 +462,8 @@ defmodule Phoenix.Socket.Transport do
462
462
463
463
* `:user_agent` - the value of the "user-agent" request header
464
464
465
+
* `:sec_websocket_protocol` - the value of the "sec-websocket-protocol" header
466
+
465
467
The CSRF check can be disabled by setting the `:check_csrf` option to `false`.
466
468
"""
467
469
defconnect_info(conn,endpoint,keys,opts\\[])do
@@ -482,6 +484,9 @@ defmodule Phoenix.Socket.Transport do
0 commit comments