From 8406cc95ab0c050138e0cc0411fdc8d9618e7a0a Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 19 Mar 2013 03:43:38 +0000 Subject: [PATCH] docs for hook --- doc/api/hooks_client-side.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/hooks_client-side.md b/doc/api/hooks_client-side.md index 7f376defa..a84ccdeb0 100644 --- a/doc/api/hooks_client-side.md +++ b/doc/api/hooks_client-side.md @@ -143,6 +143,15 @@ Things in context: This hook is called on the client side whenever a user joins or changes. This can be used to create notifications or an alternate user list. +## chatNewMessage +Called from: src/static/js/chat.js + +Things in context: + +1. msg - The message object + +This hook is called on the client side whenever a user recieves a chat message from the server. This can be used to create different notifications for chat messages. + ## collectContentPre Called from: src/static/js/contentcollector.js