Software /
code /
verse
Comparison
doc/example_bosh.lua @ 260:7f6df45a3d1f
doc/example*.lua: Update to use new .init() method
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 05 Dec 2011 15:44:17 +0000 |
parent | 91:59d7141827be |
comparison
equal
deleted
inserted
replaced
259:05acf08d2e98 | 260:7f6df45a3d1f |
---|---|
4 | 4 |
5 -- This line squishes verse each time you run, | 5 -- This line squishes verse each time you run, |
6 -- handy if you're hacking on Verse itself | 6 -- handy if you're hacking on Verse itself |
7 --os.execute("squish --minify-level=none verse"); | 7 --os.execute("squish --minify-level=none verse"); |
8 | 8 |
9 require "verse" -- Verse main library | 9 require "verse".init("client", "bosh"); |
10 require "verse.bosh" -- Verse BOSH support | |
11 require "verse.client" -- XMPP client library | |
12 | 10 |
13 c = verse.new_bosh(nil, url); | 11 c = verse.new_bosh(nil, url); |
14 c:add_plugin("version"); | 12 c:add_plugin("version"); |
15 | 13 |
16 -- Add some hooks for debugging | 14 -- Add some hooks for debugging |