Commit 45854b8b authored by marioromera's avatar marioromera
Browse files

try putting connected msg on object

parent a8c2dd7d
......@@ -26,7 +26,10 @@ publisher.on('error', e => {
publisher.on('connect', () => {
console.log('Redis connection succesfull');
publisher.publish('pad:' + this.id, 'etherpad-connected');
publisher.publish(
'pad:' + this.id,
JSON.stringify({ message: 'etherpad-connected' })
);
});
// serialization/deserialization attributes
......
......@@ -32,7 +32,9 @@ module.exports = io => {
logger.warn('Pad updated', message);
(async () => {
if (
message && message === 'etherpad-connected'
message &&
message.message &&
message.message === 'etherpad-connected'
) {
return startEtherpad();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment