Building a chat with Hanami and Hotwire
16-Jun-2022 1020
The idea was to have an “ephemeral chat”, i.e. one where messages are not persisted on the server. When you join the room, you receive messages and can participate in the conversation. But at all time communication in only available to people who are actually in the chat. In that regard, it works more or less like IRC.To build such things, we need some kind of a PubSub solution. We could use something like PostgreSQL’s LISTEN/NOTIFY or Redis, but I wanted to keep the project free of such dependencies. This is why I decided to employ Iodine.
Building a chat with Hanami and Hotwire #ruby #rubydeveloper #rubyonrails #Building #Hanami #Hotwire #hanami #hotwire https://rubyonrails.ba/link/building-a-chat-with-hanami-and-hotwire