33 |
33 |
34 if opts.content then |
34 if opts.content then |
35 atom_entry:tag("content"):text(opts.content):up(); |
35 atom_entry:tag("content"):text(opts.content):up(); |
36 end |
36 end |
37 |
37 |
38 conn.pubsub(opts.service, opts.node):publish(entry_id, nil, atom_entry); |
38 conn.pubsub(opts.service, opts.node):publish(entry_id, nil, atom_entry |
|
39 , function(ok) |
|
40 -- TODO Report success? |
|
41 conn:close(); |
|
42 end); |
39 |
43 |
40 --conn:send(verse.message({ to = opts.to, type = "chat" }) :body(text)); |
44 --conn:send(verse.message({ to = opts.to, type = "chat" }) :body(text)); |
41 conn:close(); |
|
42 end |
45 end |
43 clix_connect(opts, on_connect); |
46 clix_connect(opts, on_connect); |
44 end |
47 end |