Created
May 16, 2015 17:22
-
-
Save doomspork/e6814f77cdd18701071b to your computer and use it in GitHub Desktop.
This file contains 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
defp handle_reply(socket, {status, payload}, :handle_in) | |
when is_atom(status) and is_map(payload) do | |
send socket.transport_pid, %Reply{status: status, topic: socket.topic, | |
ref: socket.ref, payload: socket.assigns ++ payload} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment