add todos for detaching

This commit is contained in:
liamcottle 2025-01-21 04:23:36 +13:00
commit 94179f9779
2 changed files with 12 additions and 0 deletions

View file

@ -104,6 +104,12 @@ class WebsocketClientInterface(Interface):
self.online = False
# todo implement
def detach(self):
# todo mark as offline
# todo close websocket
# todo mark as detached
pass
# set interface class RNS should use when importing this external interface
interface_class = WebsocketClientInterface

View file

@ -128,6 +128,12 @@ class WebsocketServerInterface(Interface):
self.online = False
await self.serve()
# todo implement
def detach(self):
# todo mark as offline
# todo stop websocket server and all existing connections
# todo mark as detached
pass
# set interface class RNS should use when importing this external interface
interface_class = WebsocketServerInterface