Last active
April 15, 2023 03:35
-
-
Save rayrayzayzay/2f75a71dbadc82842656ef85054bf4e0 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 MyHandler do | |
use ChannelHandler.Handler | |
plug MyPlug when action in [:create, :delete] | |
plug MyPlug when event in ["post:delete"] | |
def create(payload, context, socket) do | |
# ... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment