add subscribe example

This commit is contained in:
Asim Aslam
2021-10-22 20:27:34 +01:00
parent a6ff191d12
commit df88da842a

View File

@@ -9,5 +9,17 @@
"message": {"id": "1", "type": "signup", "user": "john"}
},
"response": {}
}],
"subscribe": [{
"title": "Subscribe to a topic",
"description": "Subscribe to messages on a given topic from the stream",
"run_check": false,
"request": {
"topic": "events"
},
"response": {
"topic": "events",
"message": {"id": "1", "type": "signup", "user": "john"}
}
}]
}