Diff

doc/example_bosh.lua @ 91:59d7141827be

doc/example_bosh.lua: Put url into variable
author Matthew Wild <mwild1@gmail.com>
date Sun, 08 Aug 2010 01:17:39 +0100
parent 88:e204ef45bdd6
child 260:7f6df45a3d1f
line wrap: on
line diff
--- a/doc/example_bosh.lua	Fri Aug 06 17:09:13 2010 +0100
+++ b/doc/example_bosh.lua	Sun Aug 08 01:17:39 2010 +0100
@@ -1,5 +1,6 @@
 -- Change these:
 local jid, password = "user@example.com", "secret";
+local url = "http://example.com:80/http-bind";
 
 -- This line squishes verse each time you run,
 -- handy if you're hacking on Verse itself
@@ -9,7 +10,7 @@
 require "verse.bosh" -- Verse BOSH support
 require "verse.client" -- XMPP client library
 
-c = verse.new_bosh(nil, "http://example.com:5280/http-bind");
+c = verse.new_bosh(nil, url);
 c:add_plugin("version");
 
 -- Add some hooks for debugging