Software /
code /
verse
Changeset
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 |
parents | 259:05acf08d2e98 |
children | 261:c1404c69dec9 |
files | doc/example.lua doc/example_adhoc.lua doc/example_bosh.lua doc/example_carbons.lua doc/example_component.lua doc/example_jingle.lua doc/example_jingle_send.lua doc/example_pep.lua doc/example_pubsub.lua |
diffstat | 9 files changed, 11 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/example.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example.lua Mon Dec 05 15:44:17 2011 +0000 @@ -5,8 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none verse"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new(); c:add_plugin("version");
--- a/doc/example_adhoc.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_adhoc.lua Mon Dec 05 15:44:17 2011 +0000 @@ -5,8 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new(verse.logger()); c:add_plugin("version");
--- 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");
--- a/doc/example_carbons.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_carbons.lua Mon Dec 05 15:44:17 2011 +0000 @@ -5,8 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none verse"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new();--verse.logger()); c:add_plugin "carbons"
--- a/doc/example_component.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_component.lua Mon Dec 05 15:44:17 2011 +0000 @@ -1,9 +1,9 @@ local jid, password = "echo.localhost", "hellohello"; --os.execute("squish --minify-level=none verse"); -require "verse" -require "verse.component" -require "socket" + +require "verse".init("component"); + c = verse.new(verse.logger()) c:add_plugin("version"); c:add_plugin("ping");
--- a/doc/example_jingle.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_jingle.lua Mon Dec 05 15:44:17 2011 +0000 @@ -5,8 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new(verse.logger()) c:add_plugin("version");
--- a/doc/example_jingle_send.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_jingle_send.lua Mon Dec 05 15:44:17 2011 +0000 @@ -6,8 +6,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new(verse.logger()) c:add_plugin("version");
--- a/doc/example_pep.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_pep.lua Mon Dec 05 15:44:17 2011 +0000 @@ -5,8 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new(); c:add_plugin("version");
--- a/doc/example_pubsub.lua Mon Dec 05 15:39:05 2011 +0000 +++ b/doc/example_pubsub.lua Mon Dec 05 15:44:17 2011 +0000 @@ -5,8 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none"); -require "verse" -- Verse main library -require "verse.client" -- XMPP client library +require "verse".init("client"); c = verse.new(); c:add_plugin("pubsub");