Disable subscribe/unsubscribe commands temporarily

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-23 13:07:14 +01:00
parent 2ae3e1fbda
commit 48f03354d3
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -36,21 +36,21 @@ class Command extends PlayerConnectionEvent {
return jsonEncode(toJson()); return jsonEncode(toJson());
} }
factory Command.subscribe(String property) { // factory Command.subscribe(String property) {
return Command( // return Command(
type: 'subscribe', // type: 'subscribe',
value: { // value: {
'property': property, // 'property': property,
}, // },
); // );
} // }
factory Command.unsubscribeAll() { // factory Command.unsubscribeAll() {
return Command( // return Command(
type: 'unsubscribe_all', // type: 'unsubscribe_all',
value: {}, // value: {},
); // );
} // }
factory Command.load(String url) { factory Command.load(String url) {
return Command( return Command(