Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Mojolicious WebSocket Examples

branch: master

favicon changes

latest commit 5cfa70336f
David Davis authored
Octocat-spinner-32 mojo @ e077135 update mojo submodule reference September 23, 2011
Octocat-spinner-32 public favicon changes September 28, 2011
Octocat-spinner-32 script favicon changes September 28, 2011
Octocat-spinner-32 .gitmodules move web-socket-js dir March 28, 2010
Octocat-spinner-32 README update readme September 23, 2011
In this repo you will find various examples using WebSockets and Mojolicious

To check out the code using git:

git clone git://
cd mojo-websocket-examples
git submodule update --init

Running the examples

For non websocket native browsers, you need a flash policy server running
(port 843, so it needs to run as root)

sudo ./script/flash-policy-server &

then you can run the examples

Note, when running these examples, you shouldn't use http://localhost:3000/
Instead use or another ip local to your box.  Chrome will just refuse to
connect to localhost (or used to?)

Example 1 - Simple echo server


Then open

Example 2 - Simple IRC Client

The server proxies to, and drops you in #test (you can /join #mojo if you'd like)


Then open

You might want to open multiple tabs or something to talk to yourself
Something went wrong with that request. Please try again.