Skip to content
A chat app written with Socket.io
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
.gitignore
Dockerfile
README.md
package.json

README.md

socketchat

A simple chat application, written in Node with the help of Socket.io.

Setup

git clone git@github.com:essoen/socketchat.git
cd socketchat
npm install

Now run npm start and reach the app on localhost:3000.

Run with Docker

Run with docker run essoen/socketchat npm start.

API

Some documentation for the communcation between the client and the server:

login-object:

{
    username: String
}

users-object is a list of usernames currently in the chat.

msg-object:

{
    username: String
    msg: String
}

ctrl-object:

{
    msg: String
}
You can’t perform that action at this time.