Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple demo of using websockets for a simple chat program
branch: master

This branch is 3 commits behind rvirding:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
COPYRIGHT
README
chat.html
chat_backend.erl
chat_backend.lfe
chat_server.erl
chat_server.lfe

README

A very simple chat demo that uses websockets. I used it in a QCon
presentation. It uses misultin and JQuery v1.5, jquery.1.5.min.js.

Run it by first starting the backend:

1> chat_backend:start_link().

then the actual server:

2> chat_server:start_link(8080).

The argument is the port to use. In the browser you then open the chat window with http://1.2.3.4:8080/chat.

The LFE versions of chat_backend and chat_server are alos included. To
run these you need the newly released LFE v0.6.2.
Something went wrong with that request. Please try again.