essoen / socketchat

A chat app written with Socket.io

Home Page:http://socketchat.svorstol.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
}

About

A chat app written with Socket.io

http://socketchat.svorstol.com/


Languages

Language:JavaScript 75.7%Language:HTML 22.4%Language:CSS 2.0%