diff --git a/doc/api/hooks_server-side.md b/doc/api/hooks_server-side.md index 6d380cf0b..5a9802b7d 100644 --- a/doc/api/hooks_server-side.md +++ b/doc/api/hooks_server-side.md @@ -542,7 +542,7 @@ exports.handleMessage = (hookName, {message, socket}, callback) => { const user = socket.client.request.session.user || {}; if (user.name) message.data.userInfo.name = user.name; } - return cb(); + return callback(); }; ```