Software /
code /
verse
Diff
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 |
line wrap: on
line diff
--- a/doc/example_bosh.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_bosh.lua Mon Dec 05 15:44:17 2011 +0000 @@ -6,9 +6,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none verse"); -require "verse" -- Verse main library -require "verse.bosh" -- Verse BOSH support -require "verse.client" -- XMPP client library +require "verse".init("client", "bosh"); c = verse.new_bosh(nil, url); c:add_plugin("version");