/kuchat

[EXPERIMENTAL] mqtt-vernemq realtime chat implementation over terminal

Primary LanguageGo

Simple MQTT Based Realtime Chat TUI

Screenshot 2023-02-05 at 10 05 09

Article :

Need To Read :

  • docker compose using arm image by default, replace using general vernemq image tag.
version: "3.7"

services:
vmq:
  image: vernemq/vernemq
  ports:
    - 8080:8080
    - 8888:8888
    - 1883:1883
  volumes:
    - ./etc:/vernemq/etc/
  environment:
    DOCKER_VERNEMQ_ACCEPT_EULA: yes
  • Dashboard status http://localhost:8888/status
  • QoS level Two

How To Use

  • kuchat init

    • return uuid as seesion_id
  • kuchat <session_id> <user_email> <destination_email>

    • start ui
    • subscribe to topic /chats/<session_id>/<user_email>
    • send to topic /chats/<session_id>/<destination_email>

Demo

Screen.Recording.2023-02-05.at.10.51.19.mov