clix/publish_atom.lua

changeset 71
075ecfa46484
parent 69
4b65a9a0229b
child 72
0f69e1902f5b
equal deleted inserted replaced
70:5e93cfc73444 71:075ecfa46484
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

mercurial