aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/klippy.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-08-11 21:21:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-08-16 13:20:26 -0400
commit16a53e6918a6514941095692a2ea588ca5274413 (patch)
tree98ff055f275846a1a22acc63f0b8f9aca2b1ad8e /klippy/klippy.py
parent568393c941df58d6dc0b0cb3dc9488cb1e0d37f3 (diff)
downloadkutter-16a53e6918a6514941095692a2ea588ca5274413.tar.gz
kutter-16a53e6918a6514941095692a2ea588ca5274413.tar.xz
kutter-16a53e6918a6514941095692a2ea588ca5274413.zip
webhooks: Require a subscription to receive gcode output
Add a new "gcode/subscribe_output" webhook endpoint to subscribe to gcode output. Only client connections that subscribe to the gcode output will receive that output. This also moves all the gcode webhooks from gcode.py to webhooks.py and arranges for gcode.py to be initialized prior to webhooks.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/klippy.py')
-rw-r--r--klippy/klippy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index 33a96a7a..838a43c0 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -59,7 +59,7 @@ class Printer:
self.event_handlers = {}
self.objects = collections.OrderedDict()
# Init printer components that must be setup prior to config
- for m in [webhooks, gcode]:
+ for m in [gcode, webhooks]:
m.add_early_printer_objects(self)
def get_start_args(self):
return self.start_args