From df2310b515dd98aebb7a376363a85cbc6063b0f9 Mon Sep 17 00:00:00 2001 From: Kaushik Rishi Manchukonda Date: Sun, 1 Oct 2023 21:34:19 +0530 Subject: [PATCH] docs: usage of registerMiddleware --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ebc992f0..07dc4d66 100644 --- a/README.md +++ b/README.md @@ -169,11 +169,11 @@ function testSubscribe() { // Registering your custom logic in a channel-specific handler // the passed handler functions are called once the app gets message sent to the channel - client.receiveLightMeasurement((message) => { // `recieveLightMeasurement` is the respective operationId + client.registerReceiveLightMeasurementMiddleware((message) => { // `recieveLightMeasurement` is the respective operationId console.log("recieved in middleware 1", message.payload); }); - client.receiveLightMeasurement((message) => { + client.registerReceiveLightMeasurementMiddleware((message) => { console.log("recieved in middleware 2", message.payload); }); }