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 }