Software /
code /
verse
Comparison
doc/example_pubsub.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 | 230:44a6da432e7e |
child | 270:6a9a99aa062b |
comparison
equal
deleted
inserted
replaced
259:05acf08d2e98 | 260:7f6df45a3d1f |
---|---|
3 | 3 |
4 -- This line squishes verse each time you run, | 4 -- This line squishes verse each time you run, |
5 -- handy if you're hacking on Verse itself | 5 -- handy if you're hacking on Verse itself |
6 --os.execute("squish --minify-level=none"); | 6 --os.execute("squish --minify-level=none"); |
7 | 7 |
8 require "verse" -- Verse main library | 8 require "verse".init("client"); |
9 require "verse.client" -- XMPP client library | |
10 | 9 |
11 c = verse.new(); | 10 c = verse.new(); |
12 c:add_plugin("pubsub"); | 11 c:add_plugin("pubsub"); |
13 | 12 |
14 -- Add some hooks for debugging | 13 -- Add some hooks for debugging |