2 # Copyright (c) 2016-2020 by Someone <someone@somenet.org> (aka. Jan Vales <jan@jvales.net>)
3 # published under MIT-License
6 class AbstractWSHandler():
14 # should be overridden by the user
15 def on_register_ws_evtype(self, evtype):
18 # can/should be overridden by the user
19 def on_shutdown(self):
20 """Consider to override. Handles the shutdown-procedure."""
23 # should be overridden by the user
24 def on_WS_EVENT(self, data):
27 # should be overridden by the user
28 # manual command authentication needed!
29 def on_POST_interactive(self, request, data):
33 def _on_register_ws_evtype(self, bot, evtype):
35 self.on_register_ws_evtype(evtype)
38 def _on_shutdown(self):