Skip to content

Instantly share code, notes, and snippets.

@rayrayzayzay
Last active April 15, 2023 03:34
Show Gist options
  • Save rayrayzayzay/cb686583d7f64295e000d0052bbdb3ed to your computer and use it in GitHub Desktop.
Save rayrayzayzay/cb686583d7f64295e000d0052bbdb3ed to your computer and use it in GitHub Desktop.
defmodule Felt.Channels.ElementHandler do
# This brings useful Phoenix channels imports, even if you're not
# using the router
use ChannelHandler.Handler
def create(payload, context, socket) do
# Create the element
end
def update(payload, context, socket) do
# Update the element
end
def delete(payload, context, socket) do
# Delete the element
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment