Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Last active August 19, 2017 04:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/cdd111e5921899a7564d1364625efd21 to your computer and use it in GitHub Desktop.
Save shankardevy/cdd111e5921899a7564d1364625efd21 to your computer and use it in GitHub Desktop.
defmodule MangoWeb.BotChannel do
use MangoWeb, :channel
def join("pos", payload, socket) do
welcome_text = "Hello! Welcome to Mango Point of Sale"
{:ok, %{message: welcome_text}, socket}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment