From f9f1bc416e7bcd42e3ea5091262bc41b23eeda55 Mon Sep 17 00:00:00 2001 From: Luca Capra Date: Thu, 9 Nov 2017 10:08:27 +0100 Subject: [PATCH] Update README.md `authorizeForward` receives a client object not the clientId --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6f4d820d..36d7493b 100644 --- a/README.md +++ b/README.md @@ -281,8 +281,8 @@ It will be called when a client is set to recieve a message. Override to supply authorization logic. ```js -instance.authorizeForward = function (clientId, packet) { - if (packet.topic === 'aaaa' && clientId === "I should not see this") { +instance.authorizeForward = function (client, packet) { + if (packet.topic === 'aaaa' && client.id === "I should not see this") { return null // also works with return undefined }