From fe1c8b882a459d252d24b37a9c879755450e4cc9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 2 Jul 2021 19:13:18 +0900 Subject: Resolve #1 --- src/streaming.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 { 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 { @autobind private connectToChannel(channel: C, params: Channels[C]['params']): NonSharedConnection { - 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; } -- cgit v1.2.3-freya