Updated Server to used buildListener for pings and updated the listener and firewall to handle definitions accordingly

This commit is contained in:
Lyncoln
2026-10-30 22:50:36 -04:00
parent 4ccd44937f
commit 12b28f037a
5 changed files with 157 additions and 120 deletions
@@ -0,0 +1,16 @@
from plugins.rmass.actions import synapsesetbridgeonline
name = "Matrix Ping Listener"
kind = "listener"
acceptpath = "/_matrix/app/v1/ping"
execute = {
"module": synapsesetbridgeonline,
"engine": "thread",
}
status_code = {
"success": 200
}
+5 -1
View File
@@ -30,7 +30,10 @@ recursive = {
acceptpath = "/_matrix/app/v1/transactions/"
execute = rmassmessagepush
execute = {
"module": rmassmessagepush,
"engine": "contract",
}
filters = [
{
@@ -74,3 +77,4 @@ filters = [
]
print = "Matrix transaction received"