How to subscribe Phoenix.Presence events from an external OTP server?

Hello?

I am trying to do something for a user disconnect event from an external OTP server.

How can I subscribe Phoenix.Presence events from outside of channel socket?

Thank you.

Do you mean a genserver?

As the presence api is just functions and not macro’s, you should be able to call them from another OTP server of whatever language the same way you’d call any other elixir function. :slight_smile:

There’s nothing socket or channel specific about them. :slight_smile: