Last active
January 2, 2017 22:21
-
-
Save bdmac/8e3e37814f8b3b40a7c6a24f0f40b44b to your computer and use it in GitHub Desktop.
web/channels/business_socket.ex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Jeangrey.BusinessSocket do | |
.... | |
def connect(%{"accessToken" => access_token}, socket) do | |
...... | |
{:ok, assign(socket, :user_id, user_id) | |
...... | |
end | |
...... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment