mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
add todos for detaching
This commit is contained in:
parent
93b6104aef
commit
94179f9779
2 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue