diff --git a/src/node/db/API.js b/src/node/db/API.js index 4a1371ba..64ddef68 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -512,6 +512,39 @@ exports.listAuthorsOfPad = function(padID, callback) }); } +/** +sendClientsMessage(padID, msg) sends a message to all clients connected to the +pad, possibly for the purpose of signalling a plugin. + +Note, this will only accept strings from the HTTP API, so sending bogus changes +or chat messages will probably not be possible. + +The resulting message will be structured like so: + +{ + type: 'COLLABROOM', + data: { + type: , + time: