Added ping endpoints to listener and added server bootstrap
This commit is contained in:
@@ -8,8 +8,9 @@ from core.runtime.outputs import buildOutput
|
||||
from core.runtime.resolver import resolveItem
|
||||
from plugins.rmass.listeners import synapselistener
|
||||
from plugins.rmass.operations import rmassmessagepush
|
||||
from core.execution.operation import buildOperation
|
||||
from core.execution.action import buildAction
|
||||
from core.server.createlistener import buildListener
|
||||
from plugins.rmass.actions import pingsynapse
|
||||
|
||||
port = int(os.environ.get("SERVER_PORT", 19001))
|
||||
|
||||
@@ -104,5 +105,7 @@ def startServer():
|
||||
server = HTTPServer(("0.0.0.0", port), RequestHandler)
|
||||
|
||||
print(f"Server listening on port {port}")
|
||||
#outputs = {}
|
||||
#outputs, response = buildAction(pingsynapse, outputs)
|
||||
|
||||
server.serve_forever()
|
||||
Reference in New Issue
Block a user