diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-10-31 04:35:40 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-10-31 04:35:40 +0800 |
commit | aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9 (patch) | |
tree | 066a6280876d2c6c05788989d1f0610be37b4b46 /websocket.js | |
parent | eef4cd1b64c38e3327dbe7f1b70a60b01ce9cbed (diff) | |
parent | cb607b4911711501a8e70db0fe2148c51272c719 (diff) | |
download | go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.tar go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.tar.gz go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.tar.bz2 go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.tar.lz go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.tar.xz go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.tar.zst go-tangerine-aca9a41fcf38ae42ab72b663b6fdc4ecd9c7a7b9.zip |
Merge pull request #1 from debris/master
Http JSON-RPC provider, http polling, little refactor, whisper
Diffstat (limited to 'websocket.js')
-rw-r--r-- | websocket.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket.js b/websocket.js index 297690b33..732a086f2 100644 --- a/websocket.js +++ b/websocket.js @@ -11,7 +11,7 @@ var self = this; this.ws.onmessage = function(event) { for(var i = 0; i < self.handlers.length; i++) { - self.handlers[i].call(self, event.data, event) + self.handlers[i].call(self, JSON.parse(event.data), event) } }; |