diff options
author | Wu Cheng-Han | 2017-01-02 10:52:47 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-01-02 10:52:47 +0800 |
commit | c904083d1f5064d2e786e0bc6ee3804b91805d24 (patch) | |
tree | f37233e855abc6e245b8136d33aab3954dec9b23 /public/vendor/ot/socketio-adapter.js | |
parent | e65e09215a6e55e50bc01e14e02f6c2ac5ef584e (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.js | 3 |
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); }; |