Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (22 sloc) 1.016 kb
a5e074e @xantus added readme
authored
1
2 In this repo you will find various examples using WebSockets and Mojolicious
3
ce27714 @xantus update readme
authored
4 http://mojolicio.us/
a5e074e @xantus added readme
authored
5
211a954 @xantus update readme with checkout instructions
authored
6 To check out the code using git:
7
8 git clone git://github.com/xantus/mojo-websocket-examples.git
9 cd mojo-websocket-examples
7dc9912 @xantus fixed the submodule update command params
authored
10 git submodule update --init
74d915e @xantus update readme and note about localhost
authored
11
12
13 Running the examples
14
15 For non websocket native browsers, you need a flash policy server running
16 (port 843, so it needs to run as root)
17
18 sudo ./script/flash-policy-server &
19
20 then you can run the examples
21
22 Note, when running these examples, you shouldn't use http://localhost:3000/
23 Instead use 127.0.0.1 or another ip local to your box. Chrome will just refuse to
ce27714 @xantus update readme
authored
24 connect to localhost (or used to?)
74d915e @xantus update readme and note about localhost
authored
25
26
27 Example 1 - Simple echo server
28
29 ./script/websocket-example-1
30
31 Then open http://127.0.0.1:3000/
32
33
34 Example 2 - Simple IRC Client
35
36 The server proxies to irc.perl.org, and drops you in #test (you can /join #mojo if you'd like)
37
38 ./script/websocket-irc-example-1
39
40 Then open http://127.0.0.1:3000/
41
42 You might want to open multiple tabs or something to talk to yourself
Something went wrong with that request. Please try again.