Replaced prologue implementation with mummy for listener management, since it seems more suitable for future use (websockets, etc.).

This commit is contained in:
Jakob Friedl
2025-09-19 18:31:45 +02:00
parent 6b41efe1ed
commit 42cc58b30b
8 changed files with 122 additions and 96 deletions

View File

@@ -2,6 +2,7 @@ import prompt
import tables
import times
import parsetoml
import mummy
# Custom Binary Task structure
const
@@ -196,6 +197,7 @@ type
HTTP = "http"
Listener* = ref object of RootObj
server*: Server
listenerId*: string
address*: string
port*: int
@@ -212,7 +214,7 @@ type
Conquest* = ref object
prompt*: Prompt
dbPath*: string
listeners*: Table[string, Listener]
listeners*: Table[string, tuple[listener: Listener, thread: Thread[Listener]]]
agents*: Table[string, Agent]
interactAgent*: Agent
keyPair*: KeyPair