WSChatClient — lightweight wrapper around the monitor server's /ws endpoint.
On connect the server sends:
{"type":"config","chat_mode":"direct_ws"|"mqtt"}
When chat_mode is "direct_ws" the browser should send chat messages here
instead of publishing to MQTT io/chat. The server streams replies back as:
{"type":"chat","from":"io-gateway","content":"...","timestamp":...}
WSChatClient — lightweight wrapper around the monitor server's /ws endpoint.
On connect the server sends: {"type":"config","chat_mode":"direct_ws"|"mqtt"}
When chat_mode is "direct_ws" the browser should send chat messages here instead of publishing to MQTT io/chat. The server streams replies back as: {"type":"chat","from":"io-gateway","content":"...","timestamp":...}