6 --os.execute("squish --minify-level=none verse"); |
6 --os.execute("squish --minify-level=none verse"); |
7 |
7 |
8 require "verse" -- Verse main library |
8 require "verse" -- Verse main library |
9 require "verse.client" -- XMPP client library |
9 require "verse.client" -- XMPP client library |
10 |
10 |
11 c = verse.new() |
11 c = verse.new(); |
12 c:add_plugin("sasl"); |
|
13 c:add_plugin("version"); |
12 c:add_plugin("version"); |
14 |
13 |
15 -- Add some hooks for debugging |
14 -- Add some hooks for debugging |
16 c:hook("opened", function () print("Stream opened!") end); |
15 c:hook("opened", function () print("Stream opened!") end); |
17 c:hook("closed", function () print("Stream closed!") end); |
16 c:hook("closed", function () print("Stream closed!") end); |