Sign inSign up

essoen/socketchat

By essoen

•Updated about 10 years ago

Socketchat

Image
0

243

essoen/socketchat repository overview

⁠socketchat

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

⁠Setup

git clone [email protected]: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
}

Tag summary

Content type

Image

Digest

Size

246.7 MB

Last updated

about 10 years ago

docker pull essoen/socketchat