mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: allow minPriority config
This commit is contained in:
1 parent
936acf0139
commit
b548a48b23
10 files changed
+22
-12
No files matched your search
@@ -244,7 +244,7 @@ export default class Hydro {
|
||||
this.ws.send(this.config.cookie);
|
||||
global.onDestory.push(() => this.ws.close());
|
||||
setInterval(() => {
|
||||
this.ws.send('{"event":"ping"}');
|
||||
this.ws.send(`{"key":"prio","prio":${this.config.minPriority || -50}}`);
|
||||
}, 30000);
|
||||
});
|
||||
this.ws.on('message', (data) => {
|
||||
|
||||
Reference in new issue
Block a user