pong
This commit is contained in:
parent
7ccff732b8
commit
7d599a68ea
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ module.exports = (server: http.Server) => {
|
||||||
ev.removeAllListeners();
|
ev.removeAllListeners();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connection.on('message', async (data) => {
|
||||||
|
if (data.utf8Data == 'ping') {
|
||||||
|
connection.send('pong');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
const q = request.resourceURL.query as ParsedUrlQuery;
|
const q = request.resourceURL.query as ParsedUrlQuery;
|
||||||
const [user, app] = await authenticate(q.i as string);
|
const [user, app] = await authenticate(q.i as string);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue