Add second argument Plug.Conn to Phoenix.Endpoint.socket/3 `:check_origin` MFA

Hey @victor23k,

the issue with the proposal is that any change to the arguments here would be a breaking change. So it’s not something we can easily do.

An ugly solution if you need this could be to have a plug before the socket and store data you need in the process dictionary and then access it from there later.

3 Likes