Created
March 3, 2019 14:07
-
-
Save yurenju/85c94b2e41784c7887cbf430b835e1e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socket.on("push-operations", function(req) { | |
const msg = Messages.BufferProxy.deserializeBinary(req); | |
document.integrateOperations(msg.getOperationsList().map(deserializeOperation)); | |
console.log("push-operations", document.getText()); | |
socket.broadcast.emit("push-operations", req); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment