plugins/ping.lua

changeset 250
a5ac643a7fd6
parent 147
c95b84ed366b
child 339
72fbfb0367e9
equal deleted inserted replaced
249:00891a675634 250:a5ac643a7fd6
1 local verse = require "verse";
2
1 local xmlns_ping = "urn:xmpp:ping"; 3 local xmlns_ping = "urn:xmpp:ping";
2 4
3 function verse.plugins.ping(stream) 5 function verse.plugins.ping(stream)
4 function stream:ping(jid, callback) 6 function stream:ping(jid, callback)
5 local t = socket.gettime(); 7 local t = socket.gettime();

mercurial