Hello,
I am trying to add presence functionality to my chat server. Setting it up with channels was fairly straight forward but I can’t seem to get both messages to appear and for them to persist.
The idea is to keep track of all the messages in lobby, and then have them persist when a new client joins.
Most of my JS logic is here – https://github.com/enilsen16/mychat/blob/add_presence/assets/js/gossip.js
My Room Channel Logic – https://github.com/enilsen16/mychat/blob/add_presence/lib/web/channels/room_channel.ex
Thanks