The chat is built using a LiveView, and gets real time update when someone write a message here
|
def handle_info(%{event: "message", payload: state}, socket) do |
We need to add a listener for when someone sends a message from a different chat, and put the lhc_chat component here
|
property(active, :boolean, default: false) |
You can read more about Dixord set up with LiveView and Surface for components here http://www.lessand.ro/15/post
I will be really happy provide extensive Elixir support for anyone that takes this up, even if you are not yet proficient with the Tech Stack. You can start by reading the docs at https://dixord.herokuapp.com/api-reference.html
The chat is built using a LiveView, and gets real time update when someone write a message here
dixord/lib/dixord_web/live/chat_live_view.ex
Line 59 in b9e4146
We need to add a listener for when someone sends a message from a different chat, and put the
lhc_chatcomponent heredixord/lib/dixord_web/components/lhc_chat.ex
Line 6 in b9e4146
You can read more about Dixord set up with LiveView and Surface for components here http://www.lessand.ro/15/post
I will be really happy provide extensive Elixir support for anyone that takes this up, even if you are not yet proficient with the Tech Stack. You can start by reading the docs at https://dixord.herokuapp.com/api-reference.html