Permalink
Browse files

update README

  • Loading branch information...
cloudshift committed Mar 19, 2012
1 parent f1c9b08 commit cd3902ceefda828d265bfc8eebf147e9c3a49d87
Showing with 9 additions and 9 deletions.
  1. +9 −9 README.org
View
@@ -46,16 +46,16 @@
implementation (web socket conduit will be added).
#+BEGIN_SRC haxe
- Http.server()
- .root("www")
- .start({host:"localhost",port:8082})
+ Http.server().root("www").start({host:"localhost",port:8082})
.outcome(function(http) {
- Channel.server()
- .addHttpServer(http)
- .addChannelAuth(channelAuth)
- .addSessionAuth(sessAuth)
- .start({}).outcome(startRooms);
- });
+ Session.manager().start(http)
+ .outcome(function(sess:SessionMgr) {
+ sess.authorize(sessAuth);
+ Channel.server()
+ .addChannelAuth(channelAuth)
+ .start(sess).outcome(startRooms);
+ });
+ });
#+END_SRC
Once you have your client or server, you may get a channel and pub/sub

0 comments on commit cd3902c

Please sign in to comment.