Skip to content
Snippets Groups Projects
Unverified Commit 7d599a68 authored by syuilo's avatar syuilo
Browse files

pong

parent 7ccff732
No related branches found
No related tags found
Loading
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment