-
Notifications
You must be signed in to change notification settings - Fork 7
/
cursortrace.js
41 lines (32 loc) · 1.05 KB
/
cursortrace.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
var crypto = require('crypto');
var padManager = require("ep_etherpad-lite/node/db/PadManager");
var fs = require('fs');
var settings = require('ep_etherpad-lite/node/utils/Settings');
var authorManager = require('ep_etherpad-lite/node/db/AuthorManager');
var sessionManager = require('ep_etherpad-lite/node/db/SessionManager');
var cb = function() {};
*/
exports.handleMessage = function(hook_name, context, callback) {
/*
if (context.message && context.message.data) {
var msg = context.message.data.type;
var uid = context.message.data.userId;
var padid = context.message.data.padId;
if (msg == "EDIT") {
msg = {
type: 'COLLABROOM',
data: {
type: "EDIT",
payload: {
padId: padid,
from: "ace",
errors: frerr
}
}
};
padMessageHandler.handleCustomObjectMessage(msg, undefined, cb);
}
}
*/
};