diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-17 09:07:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-17 09:07:46 +0900 |
| commit | 7d599a68eaf8eb22d047b5952be17aec4540200c (patch) | |
| tree | 6fd4560f52cc09bcbe5c5fed1d64f7af74772803 /src/server/api/streaming.ts | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-7d599a68eaf8eb22d047b5952be17aec4540200c.tar.gz sharkey-7d599a68eaf8eb22d047b5952be17aec4540200c.tar.bz2 sharkey-7d599a68eaf8eb22d047b5952be17aec4540200c.zip | |
pong
Diffstat (limited to 'src/server/api/streaming.ts')
| -rw-r--r-- | src/server/api/streaming.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts index 873719d031..09ec23a743 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); |