diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-07 17:48:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-07 17:48:32 +0900 |
| commit | 161fd4afab323ca6bf491def473f84bb7557b481 (patch) | |
| tree | 4c8a2215dc9d3e3b817bbd82ca9b8f88fb0a0420 /src/api/event.ts | |
| parent | wip (diff) | |
| download | sharkey-161fd4afab323ca6bf491def473f84bb7557b481.tar.gz sharkey-161fd4afab323ca6bf491def473f84bb7557b481.tar.bz2 sharkey-161fd4afab323ca6bf491def473f84bb7557b481.zip | |
wip
Diffstat (limited to 'src/api/event.ts')
| -rw-r--r-- | src/api/event.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/event.ts b/src/api/event.ts index e68082f0a9..4c9cc18e4d 100644 --- a/src/api/event.ts +++ b/src/api/event.ts @@ -42,6 +42,10 @@ class MisskeyEvent { this.publish(`othello-stream:${userId}`, type, typeof value === 'undefined' ? null : value); } + public publishOthelloGameStream(gameId: ID, type: string, value?: any): void { + this.publish(`othello-game-stream:${gameId}`, type, typeof value === 'undefined' ? null : value); + } + public publishChannelStream(channelId: ID, type: string, value?: any): void { this.publish(`channel-stream:${channelId}`, type, typeof value === 'undefined' ? null : value); } @@ -71,4 +75,6 @@ export const publishMessagingIndexStream = ev.publishMessagingIndexStream.bind(e export const publishOthelloStream = ev.publishOthelloStream.bind(ev); +export const publishOthelloGameStream = ev.publishOthelloGameStream.bind(ev); + export const publishChannelStream = ev.publishChannelStream.bind(ev); |