diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-14 04:37:20 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-14 04:37:20 +0900 |
| commit | 0fb52ea7eb7c5f760f3a13afd2cbe20023dfff37 (patch) | |
| tree | d409c4dd48f0e75afd26e9865e6f9bdcb92b8bec /src/api/streaming.ts | |
| parent | :v: (diff) | |
| download | sharkey-0fb52ea7eb7c5f760f3a13afd2cbe20023dfff37.tar.gz sharkey-0fb52ea7eb7c5f760f3a13afd2cbe20023dfff37.tar.bz2 sharkey-0fb52ea7eb7c5f760f3a13afd2cbe20023dfff37.zip | |
:v:
Diffstat (limited to 'src/api/streaming.ts')
| -rw-r--r-- | src/api/streaming.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/api/streaming.ts b/src/api/streaming.ts index 7d67ba9574..f56c08092c 100644 --- a/src/api/streaming.ts +++ b/src/api/streaming.ts @@ -53,6 +53,11 @@ module.exports = (server: http.Server) => { const user = await authenticate(request.resourceURL.query.i); + if (request.resourceURL.pathname === '/othello-game') { + othelloGameStream(request, connection, subscriber, user); + return; + } + if (user == null) { connection.send('authentication-failed'); connection.close(); @@ -64,7 +69,6 @@ module.exports = (server: http.Server) => { request.resourceURL.pathname === '/drive' ? driveStream : request.resourceURL.pathname === '/messaging' ? messagingStream : request.resourceURL.pathname === '/messaging-index' ? messagingIndexStream : - request.resourceURL.pathname === '/othello-game' ? othelloGameStream : request.resourceURL.pathname === '/othello' ? othelloStream : null; |