1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 13:35:52 +02:00
This commit is contained in:
syuilo
2020-09-06 13:04:44 +09:00
parent d4085085b8
commit cc35f2c186
18 changed files with 38 additions and 44 deletions

View File

@@ -234,7 +234,7 @@ export default defineComponent({
stats: null,
serverInfo: null,
connection: null,
queueConnection: this.$root.stream.useSharedConnection('queueStats'),
queueConnection: os.stream.useSharedConnection('queueStats'),
memUsage: 0,
chartCpuMem: null,
chartNet: null,
@@ -499,7 +499,7 @@ export default defineComponent({
os.api('admin/server-info', {}).then(res => {
this.serverInfo = res;
this.connection = this.$root.stream.useSharedConnection('serverStats');
this.connection = os.stream.useSharedConnection('serverStats');
this.connection.on('stats', this.onStats);
this.connection.on('statsLog', this.onStatsLog);
this.connection.send('requestLog', {

View File

@@ -38,7 +38,7 @@ export default defineComponent({
data() {
return {
connection: this.$root.stream.useSharedConnection('queueStats'),
connection: os.stream.useSharedConnection('queueStats'),
faExchangeAlt, faTrashAlt
}
},

View File

@@ -63,7 +63,7 @@ export default defineComponent({
},
mounted() {
this.connection = this.$root.stream.useSharedConnection('messagingIndex');
this.connection = os.stream.useSharedConnection('messagingIndex');
this.connection.on('message', this.onMessage);
this.connection.on('read', this.onRead);

View File

@@ -107,7 +107,7 @@ export default defineComponent({
this.group = group;
}
this.connection = this.$root.stream.connectToChannel('messaging', {
this.connection = os.stream.connectToChannel('messaging', {
otherparty: this.user ? this.user.id : undefined,
group: this.group ? this.group.id : undefined,
});