absinthe_phoenix icon indicating copy to clipboard operation
absinthe_phoenix copied to clipboard

Enable join, handle_in, and handle_out hooks

Open athal7 opened this issue 7 years ago • 1 comments

I'd like to be able to gather some data about the messages being sent over a subscription as well as the socket over which it is being sent. Right now it doesn't appear that there is a clean way to integrate with the auto-generated channels and topics.

athal7 avatar Jan 12 '18 21:01 athal7

@athal7 You can use the following Absinthe channel decorator approach to extend the join and handle_in functions.

It would be useful for Absinthe Phoenix to provide these hooks directly, without needing to do the above customisation.

slashdotdash avatar Jun 12 '19 10:06 slashdotdash