Comparison

plugins/ping.lua @ 255:be126fe7c4e7

Merge with MattJ & mva
author Kim Alvefur <zash@zash.se>
date Sat, 03 Dec 2011 19:46:47 +0100
parent 250:a5ac643a7fd6
child 339:72fbfb0367e9
comparison
equal deleted inserted replaced
254:616cc6a5fd30 255:be126fe7c4e7
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();