Skip to content

Instantly share code, notes, and snippets.

@doomspork
Created May 16, 2015 17:22
Show Gist options
  • Save doomspork/e6814f77cdd18701071b to your computer and use it in GitHub Desktop.
Save doomspork/e6814f77cdd18701071b to your computer and use it in GitHub Desktop.
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