aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyagl/services/can.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyagl/services/can.py b/pyagl/services/can.py
index a95327b..12c920a 100644
--- a/pyagl/services/can.py
+++ b/pyagl/services/can.py
@@ -43,6 +43,11 @@ class CANService(AGLBaseService):
async def list(self):
return await self.request('list')
+ async def subscribe(self, event):
+ return await self.request(verb='subscribe', values={'event': event})
+
+ async def unsubscribe(self, event):
+ return await self.request(verb='unsubscribe', values={'event': event})
async def main(loop):
args = CANService.parser.parse_args()