Changeset

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
parents 90:aa0b78053cec
children 92:dcccef33f0eb
files doc/example_bosh.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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