Running a group chat server on the Node.js based Neonious One
I wanted to create a system for a group to communicate where there is no internet or mobile phone coverage. The low power usage of ESP32 based microcontrollers means the device could be powered from a USB powerbank or small solar panel.
The app uses the Node.js WS websocket library, This is easily installed using the IDE package manager
Server Side JS
Client Side HTML
A download of all the code and assets is here: neonious_one_chat.zip
I’ve used a simple click your picture to login system. In a finished application this could be replaced with a proper authentication method.
Demonstration with Four Users
The video below shows the chat working with four users. Laura, Warren, Tony and Alaska:
There is no security or input checking at the moment but it is completely functional and could be used for group chats in remote locations.
Neonious One website: https://www.neonious.com/neoniousOne
Lowjs chat server example: https://github.com/neonious/lowjs/tree/master/examples/chat_ws_webserver
Node.js WebSocket library: https://www.npmjs.com/package/ws https://github.com/websockets/ws
Design inspiration and some CSS: https://codepen.io/drehimself/pen/KdXwxR