diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-07 11:40:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-07 11:40:40 +0900 |
| commit | 6c495268aec2d2fa02ac16dbc119fb9c4e34cdae (patch) | |
| tree | 4752806e22d15698b02bac88777ee70486566588 /src/api/event.ts | |
| parent | wip (diff) | |
| download | sharkey-6c495268aec2d2fa02ac16dbc119fb9c4e34cdae.tar.gz sharkey-6c495268aec2d2fa02ac16dbc119fb9c4e34cdae.tar.bz2 sharkey-6c495268aec2d2fa02ac16dbc119fb9c4e34cdae.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 4a2e4e453d..e68082f0a9 100644 --- a/src/api/event.ts +++ b/src/api/event.ts @@ -38,6 +38,10 @@ class MisskeyEvent { this.publish(`messaging-index-stream:${userId}`, type, typeof value === 'undefined' ? null : value); } + public publishOthelloStream(userId: ID, type: string, value?: any): void { + this.publish(`othello-stream:${userId}`, 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); } @@ -65,4 +69,6 @@ export const publishMessagingStream = ev.publishMessagingStream.bind(ev); export const publishMessagingIndexStream = ev.publishMessagingIndexStream.bind(ev); +export const publishOthelloStream = ev.publishOthelloStream.bind(ev); + export const publishChannelStream = ev.publishChannelStream.bind(ev); |