Software /
code /
verse
Comparison
plugins/ping.lua @ 490:6b2f31da9610
Update for new Prosody module namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 May 2023 20:48:03 +0200 |
parent | 457:73d4eb93657b |
comparison
equal
deleted
inserted
replaced
489:39ed19f12dca | 490:6b2f31da9610 |
---|---|
1 local verse = require "verse"; | 1 local verse = require "verse"; |
2 local gettime = require"socket".gettime; | 2 local gettime = require"socket".gettime; |
3 local new_id = require "util.id".short; | 3 local new_id = require "prosody.util.id".short; |
4 | 4 |
5 local xmlns_ping = "urn:xmpp:ping"; | 5 local xmlns_ping = "urn:xmpp:ping"; |
6 | 6 |
7 function verse.plugins.ping(stream) | 7 function verse.plugins.ping(stream) |
8 function stream:ping(jid, callback) | 8 function stream:ping(jid, callback) |