mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-04 22:00:05 -05:00
use http api instead of websocket for sending announce
This commit is contained in:
parent
a1401bed8b
commit
c7b9b1d580
3 changed files with 5 additions and 19 deletions
6
web.py
6
web.py
|
|
@ -675,7 +675,7 @@ class ReticulumMeshChat:
|
|||
@routes.get("/api/v1/announce")
|
||||
async def index(request):
|
||||
|
||||
self.announce()
|
||||
await self.announce()
|
||||
|
||||
return web.json_response({
|
||||
"message": "announcing",
|
||||
|
|
@ -1068,10 +1068,6 @@ class ReticulumMeshChat:
|
|||
# send config to websocket clients
|
||||
await self.send_config_to_websocket_clients()
|
||||
|
||||
# handle sending an announce
|
||||
elif _type == "announce":
|
||||
await self.announce()
|
||||
|
||||
# handle downloading a file from a nomadnet node
|
||||
elif _type == "nomadnet.file.download":
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue