1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 11:56:13 +02:00

同じ接続を使いまわすように

This commit is contained in:
syuilo
2017-11-13 03:47:06 +09:00
parent f24d86bf93
commit 98dca7b7ac
6 changed files with 60 additions and 13 deletions

View File

@@ -60,8 +60,6 @@
</style>
<script>
import Connection from '../../../common/scripts/server-stream';
this.data = {
view: 0,
design: 0
@@ -69,8 +67,11 @@
this.mixin('widget');
this.mixin('server-stream');
this.connection = this.serverStream.getConnection();
this.connectionId = this.serverStream.use();
this.initializing = true;
this.connection = new Connection();
this.on('mount', () => {
this.api('meta').then(meta => {
@@ -82,7 +83,7 @@
});
this.on('unmount', () => {
this.connection.close();
this.serverStream.dispose(this.connectionId);
});
this.toggle = () => {