From d3bb7cf6d7fb3c1dcf7f1b309426b07a175c8b73 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 25 Jun 2015 19:03:26 -0500 Subject: [PATCH] remove redundant serialization of muxrpc over ipc --- app/lib/muxrpc-ipc.js | 5 +---- package.json | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/lib/muxrpc-ipc.js b/app/lib/muxrpc-ipc.js index 77f9984..0460bd8 100644 --- a/app/lib/muxrpc-ipc.js +++ b/app/lib/muxrpc-ipc.js @@ -1,7 +1,6 @@ var ipc = require('ipc') var muxrpc = require('muxrpc') var pull = require('pull-stream') -var Serializer = require('pull-serializer') var pushable = require('pull-pushable') var Api = require('scuttlebot/lib/api') @@ -17,9 +16,7 @@ module.exports = function (sbot, window) { var rpc = muxrpc(null, sbot.manifest, serialize)(api) rpc.authorized = { id: sbot.feed.id, role: 'master' } rpc.permissions({allow: null, deny: null}) - function serialize (stream) { - return Serializer(stream, JSON, {split: '\n\n'}) - } + function serialize (stream) { return stream } // setup rpc stream over ipc var rpcStream = rpc.createStream() diff --git a/package.json b/package.json index de8d01e..07e167d 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "multicb": "^1.1.0", "muxrpc": "^5.0.1", "pull-pushable": "^1.1.4", - "pull-serializer": "^0.3.2", "pull-stream": "^2.27.0", "scuttlebot": "^4.2.3", "ssb-config": "^1.0.3",