diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index 873719d03..09ec23a74 100644 --- a/src/server/api/streaming.ts +++ b/src/server/api/streaming.ts @@ -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);