commit
9d29b15def
|
@ -384,3 +384,20 @@ exports.userLeave = function(hook, session, callback) {
|
||||||
console.log('%s left pad %s', session.author, session.padId);
|
console.log('%s left pad %s', session.author, session.padId);
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### clientReady
|
||||||
|
Called from src/node/handler/PadMessageHandler.js
|
||||||
|
|
||||||
|
This in context:
|
||||||
|
|
||||||
|
1. message
|
||||||
|
|
||||||
|
This hook gets called when handling a CLIENT_READY which is the first message from the client to the server.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
exports.clientReady = function(hook, message) {
|
||||||
|
console.log('Client has entered the pad' + message.padId);
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
|
@ -1020,6 +1020,8 @@ function handleClientReady(client, message)
|
||||||
var currentTime;
|
var currentTime;
|
||||||
var padIds;
|
var padIds;
|
||||||
|
|
||||||
|
hooks.callAll("clientReady", message);
|
||||||
|
|
||||||
async.series([
|
async.series([
|
||||||
//Get ro/rw id:s
|
//Get ro/rw id:s
|
||||||
function (callback)
|
function (callback)
|
||||||
|
|
Loading…
Reference in New Issue