Browse Source

remove redundant serialization of muxrpc over ipc

Paul Frazee 5 years ago
parent
commit
d3bb7cf6d7
2 changed files with 1 additions and 5 deletions
  1. 1
    4
      app/lib/muxrpc-ipc.js
  2. 0
    1
      package.json

+ 1
- 4
app/lib/muxrpc-ipc.js View File

@@ -1,7 +1,6 @@
1 1
 var ipc        = require('ipc')
2 2
 var muxrpc     = require('muxrpc')
3 3
 var pull       = require('pull-stream')
4
-var Serializer = require('pull-serializer')
5 4
 var pushable   = require('pull-pushable')
6 5
 var Api        = require('scuttlebot/lib/api')
7 6
 
@@ -17,9 +16,7 @@ module.exports = function (sbot, window) {
17 16
   var rpc = muxrpc(null, sbot.manifest, serialize)(api)
18 17
   rpc.authorized = { id: sbot.feed.id, role: 'master' }
19 18
   rpc.permissions({allow: null, deny: null})
20
-  function serialize (stream) {
21
-    return Serializer(stream, JSON, {split: '\n\n'})
22
-  }
19
+  function serialize (stream) { return stream }
23 20
 
24 21
   // setup rpc stream over ipc
25 22
   var rpcStream = rpc.createStream()

+ 0
- 1
package.json View File

@@ -29,7 +29,6 @@
29 29
     "multicb": "^1.1.0",
30 30
     "muxrpc": "^5.0.1",
31 31
     "pull-pushable": "^1.1.4",
32
-    "pull-serializer": "^0.3.2",
33 32
     "pull-stream": "^2.27.0",
34 33
     "scuttlebot": "^4.2.3",
35 34
     "ssb-config": "^1.0.3",

Loading…
Cancel
Save