In Elixir and Phoenix, I can get a session in the controller
Plug.Conn.get_session(conn, :id)
So how to get a session in another module as a module, use Phoenix.Channel?
Phoenix.Channel
Plug.Connunavailable at Phoenix.Channel. Channels rely on Phoenix.Socket, and you can use Phoenix.Tokenfor authentication.
Plug.Conn
Phoenix.Socket
Phoenix.Token
Here's a tutorial on how to authenticate channels in Phoenix.
Source: https://habr.com/ru/post/1621562/More articles:Removing the bokeh icon from shapes built into Jupyter? - pythonOrientJS: How to get standard JSON (serialized) from request - orientdbCalling Erlang Functions from NIF - erlanghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1621560/bayesian-error-in-variables-total-least-squares-model-in-r-using-mcmcglmm&usg=ALkJrhgOKHTF_Ra5P1zlNdmLJEb-ENWT9gHow can I use angular material with angular 2? - angularHow to prevent the flow of a Mixpanel funnel? - mixpanelhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1621564/how-do-i-reset-my-counter-when-it-gets-to-the-end-of-my-array&usg=ALkJrhi0j4-kKzi5julWIQYer1YFzozfQgHow to efficiently get top K-like cosine-like document using python? - pythonUsing a JS Variable Name for a Name An Additional Variable - jsonWhat is the time complexity of the lower () / higher () TreeSet method in Java? - javaAll Articles