From 7f0e6b8d90dc7bb9fa9e4126672af86a9aaa7478 Mon Sep 17 00:00:00 2001 From: kahirokunn Date: Sun, 16 Aug 2026 22:31:51 +0900 Subject: [PATCH] docs: return the transport promise from the custom emitter examples Signed-off-by: kahirokunn --- API_TRANSITION_GUIDE.md | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/API_TRANSITION_GUIDE.md b/API_TRANSITION_GUIDE.md index 4370a732..df31c985 100644 --- a/API_TRANSITION_GUIDE.md +++ b/API_TRANSITION_GUIDE.md @@ -60,7 +60,7 @@ function sendWithAxios(message) { // Do what you need with the message headers // and body in this function, then send the // event - axios({ + return axios({ method: 'post', url: '...', data: message.body, @@ -82,7 +82,7 @@ function sendWithAxios(message) { // Do what you need with the message headers // and body in this function, then send the // event - axios({ + return axios({ method: "post", url: "...", data: message.body, diff --git a/README.md b/README.md index b40b8de3..d8792814 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ function sendWithAxios(message) { // Do what you need with the message headers // and body in this function, then send the // event - axios({ + return axios({ method: "post", url: "...", data: message.body,