Commit 7bb9a793 by ken

depth

parent d93928ff
...@@ -99,6 +99,7 @@ const _subscribe = function(callback, opened_callback = false) { ...@@ -99,6 +99,7 @@ const _subscribe = function(callback, opened_callback = false) {
ws.on('close', _handleSocketClose.bind(ws)); ws.on('close', _handleSocketClose.bind(ws));
ws.on('message', function(data) { ws.on('message', function(data) {
try { try {
console.log(data);
data = pako.inflate(data, { data = pako.inflate(data, {
to: 'string' to: 'string'
}); });
......
Markdown is supported
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