doc/example_bosh.lua: Put url into variable

Sun, 08 Aug 2010 01:17:39 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 08 Aug 2010 01:17:39 +0100
changeset 91
59d7141827be
parent 90
aa0b78053cec
child 92
dcccef33f0eb

doc/example_bosh.lua: Put url into variable

doc/example_bosh.lua file | annotate | diff | comparison | revisions
--- 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

mercurial