Last active
April 15, 2023 03:34
-
-
Save rayrayzayzay/cb686583d7f64295e000d0052bbdb3ed to your computer and use it in GitHub Desktop.
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 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