This is a client and server side implementation of a chat box using WebSockets and NodeJS.
- Emojione emojis (shortcode and unicode)
- Modern design
- Connections counter (could be used with a live stream)
- Origin limiter (block people from other websites using your server)
- Random user colours
- WebSocket SSL support
- Nicknames
- Commands
https://projects.voidpowered.com/chat.js/
The client code should be hosted on a HTTP(S) server and accessed with a browser that supports WebSockets.
The server should have NodeJS installed and all this projects prerequisites; to install the prerequisites use the following command:
$ npm install http https websocket fs
Then modify the config options in the chat-server.js file (port, origin and ssl).
The client code should be hosted on a HTTP(S) server.
To start the server:
$ node chat-server.js
- !nick - Prompts to change nick
- !clear - Clears chat (client-side only)