summaryrefslogtreecommitdiff
path: root/src/web/app/common/scripts/streaming/messaging-index.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-15 19:53:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-15 19:53:46 +0900
commit1439c3245b961de910b753ff2d5069c17e79af4b (patch)
tree0ea43246eac335af39e32f2910b3131ce3ec782d /src/web/app/common/scripts/streaming/messaging-index.ts
parent:v: (diff)
downloadmisskey-1439c3245b961de910b753ff2d5069c17e79af4b.tar.gz
misskey-1439c3245b961de910b753ff2d5069c17e79af4b.tar.bz2
misskey-1439c3245b961de910b753ff2d5069c17e79af4b.zip
:v:
Diffstat (limited to 'src/web/app/common/scripts/streaming/messaging-index.ts')
-rw-r--r--src/web/app/common/scripts/streaming/messaging-index.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/web/app/common/scripts/streaming/messaging-index.ts b/src/web/app/common/scripts/streaming/messaging-index.ts
index 69758416dc..84e2174ec4 100644
--- a/src/web/app/common/scripts/streaming/messaging-index.ts
+++ b/src/web/app/common/scripts/streaming/messaging-index.ts
@@ -1,12 +1,13 @@
import Stream from './stream';
import StreamManager from './stream-manager';
+import MiOS from '../../mios';
/**
* Messaging index stream connection
*/
export class MessagingIndexStream extends Stream {
- constructor(me) {
- super('messaging-index', {
+ constructor(os: MiOS, me) {
+ super(os, 'messaging-index', {
i: me.token
});
}
@@ -14,16 +15,18 @@ export class MessagingIndexStream extends Stream {
export class MessagingIndexStreamManager extends StreamManager<MessagingIndexStream> {
private me;
+ private os: MiOS;
- constructor(me) {
+ constructor(os: MiOS, me) {
super();
this.me = me;
+ this.os = os;
}
public getConnection() {
if (this.connection == null) {
- this.connection = new MessagingIndexStream(this.me);
+ this.connection = new MessagingIndexStream(this.os, this.me);
}
return this.connection;