diff --git a/stream/examples.json b/stream/examples.json index 23f2df6..e2e8e7e 100644 --- a/stream/examples.json +++ b/stream/examples.json @@ -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"} + } }] }