summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-07-02 19:13:18 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-07-02 19:13:18 +0900
commitfe1c8b882a459d252d24b37a9c879755450e4cc9 (patch)
treee75d7e97dd8365da0cf31b0d92d8a845dfa98d0c /src
parentImprove type definiyion (diff)
downloadmisskey-fe1c8b882a459d252d24b37a9c879755450e4cc9.tar.gz
misskey-fe1c8b882a459d252d24b37a9c879755450e4cc9.tar.bz2
misskey-fe1c8b882a459d252d24b37a9c879755450e4cc9.zip
Resolve #1
Diffstat (limited to 'src')
-rw-r--r--src/streaming.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/streaming.ts b/src/streaming.ts
index 26137d1885..d8feb700bd 100644
--- a/src/streaming.ts
+++ b/src/streaming.ts
@@ -2,7 +2,6 @@ import autobind from 'autobind-decorator';
import { EventEmitter } from 'eventemitter3';
import ReconnectingWebsocket from 'reconnecting-websocket';
import { stringify } from 'querystring';
-import { markRaw } from '@vue/reactivity';
import { BroadcasrEvents, Channels } from './streaming.types';
function urlQuery(obj: {}): string {
@@ -72,7 +71,7 @@ export default class Stream extends EventEmitter<StreamEvents> {
this.sharedConnectionPools.push(pool);
}
- const connection = markRaw(new SharedConnection(this, channel, pool, name));
+ const connection = new SharedConnection(this, channel, pool, name);
this.sharedConnections.push(connection);
return connection;
}
@@ -89,7 +88,7 @@ export default class Stream extends EventEmitter<StreamEvents> {
@autobind
private connectToChannel<C extends keyof Channels>(channel: C, params: Channels[C]['params']): NonSharedConnection<Channels[C]> {
- const connection = markRaw(new NonSharedConnection(this, channel, this.genId(), params));
+ const connection = new NonSharedConnection(this, channel, this.genId(), params);
this.nonSharedConnections.push(connection);
return connection;
}