summaryrefslogtreecommitdiff
path: root/public/vendor/ot/socketio-adapter.js
diff options
context:
space:
mode:
authorWu Cheng-Han2017-01-02 10:52:47 +0800
committerWu Cheng-Han2017-01-02 10:52:47 +0800
commitc904083d1f5064d2e786e0bc6ee3804b91805d24 (patch)
treef37233e855abc6e245b8136d33aab3954dec9b23 /public/vendor/ot/socketio-adapter.js
parente65e09215a6e55e50bc01e14e02f6c2ac5ef584e (diff)
Remove manual LZString compression for partial socket io event data
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--]public/vendor/ot/socketio-adapter.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/public/vendor/ot/socketio-adapter.js b/public/vendor/ot/socketio-adapter.js
index 329d4f3e..189a081b 100644..100755
--- a/public/vendor/ot/socketio-adapter.js
+++ b/public/vendor/ot/socketio-adapter.js
@@ -24,8 +24,6 @@ ot.SocketIOAdapter = (function () {
self.trigger('selection', clientId, selection);
});
socket.on('operations', function (head, operations) {
- operations = LZString.decompressFromUTF16(operations);
- operations = JSON.parse(operations);
self.trigger('operations', head, operations);
});
socket.on('selection', function (clientId, selection) {
@@ -37,7 +35,6 @@ ot.SocketIOAdapter = (function () {
}
SocketIOAdapter.prototype.sendOperation = function (revision, operation, selection) {
- operation = LZString.compressToUTF16(JSON.stringify(operation));
this.socket.emit('operation', revision, operation, selection);
};