Support for Phoenix Presence
It looks like there are some updates here needed to support presence. In particular in the JavaScript client, they have a Presence module with a couple of functions on it. The links below may help:
https://github.com/phoenixframework/phoenix/blob/f2e02d97ef79f825f6bbbdc2d7b69a1d005bff90/web/test/presence_test.js
https://github.com/phoenixframework/phoenix/blob/0cefe23a95628cd8ccb73db4e59644b699a544da/web/static/js/phoenix.js#L796
I think the change here would be to include a Presence class. I will also check to see if there are any further changes needed for the socket
It's added here but not much tested. Welcome any comment! https://github.com/lucasleongit/JavaPhoenixChannels/tree/presence
Can you give any examples of Presence usage for those who are not experienced Java developers?
I wish that had been merged 😞
still, don't have the Presence function.
You can try out JavaPhoenixClient which has presence support.
Disclaimer: I am the author of that library and actively maintain it. We use it in production however not the Presence feature. I know it's been used by others but not personally in our production products.