Updated Server to used buildListener for pings and updated the listener and firewall to handle definitions accordingly
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user