Livecoding a web-based chat-client

By Arne Hassel.


This is the result we're going for.


No messages yet; you should submit a message.

  • {{msg.nick}} {{msg.message}}

There is no persistent storage of messages, as Heroku doesn't support MongoHQ in Europe.

How it works

Open this website in two browsers/tabs. Once you send a message in one, it will show in the other.

Once you open this website, a connection is made to the server with a socket. This connection is maintained between multiple instances, making it possible to send messages between them.

This messages are then handled by a simple application, that handles the communication so that updates are shown on the website.

What it is

A simple chat-client based on libraries and services.