This commit is contained in:
syuilo 2018-09-17 09:07:46 +09:00
parent 7ccff732b8
commit 7d599a68ea
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -45,6 +45,12 @@ module.exports = (server: http.Server) => {
ev.removeAllListeners();
});
connection.on('message', async (data) => {
if (data.utf8Data == 'ping') {
connection.send('pong');
}
});
const q = request.resourceURL.query as ParsedUrlQuery;
const [user, app] = await authenticate(q.i as string);