Fix bug and refactor
This commit is contained in:
@@ -71,8 +71,7 @@ export default Vue.extend({
|
||||
|
||||
this.pingClock = setInterval(() => {
|
||||
if (this.matching) {
|
||||
this.connection.send({
|
||||
type: 'ping',
|
||||
this.connection.send('ping', {
|
||||
id: this.matching.id
|
||||
});
|
||||
}
|
||||
|
@@ -113,8 +113,7 @@ export default define({
|
||||
|
||||
this.connection.on('stats', this.onStats);
|
||||
this.connection.on('statsLog', this.onStatsLog);
|
||||
this.connection.send({
|
||||
type: 'requestLog',
|
||||
this.connection.send('requestLog',{
|
||||
id: Math.random().toString()
|
||||
});
|
||||
},
|
||||
|
@@ -91,8 +91,7 @@ export default Vue.extend({
|
||||
mounted() {
|
||||
this.connection.on('stats', this.onStats);
|
||||
this.connection.on('statsLog', this.onStatsLog);
|
||||
this.connection.send({
|
||||
type: 'requestLog',
|
||||
this.connection.send('requestLog', {
|
||||
id: Math.random().toString()
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user