|
@@ -14,7 +14,6 @@ module.exports = function (window, sbot, params) {
|
14
|
14
|
// create rpc object
|
15
|
15
|
var rpc = window.rpc = muxrpc(clientApi, sbot.manifest(), serialize)(sbot)
|
16
|
16
|
rpc.authorized = { id: sbot.id, role: 'master' }
|
17
|
|
- rpc.permissions({allow: null, deny: null})
|
18
|
17
|
function serialize (stream) { return stream }
|
19
|
18
|
|
20
|
19
|
// start the stream
|
|
@@ -26,7 +25,7 @@ module.exports = function (window, sbot, params) {
|
26
|
25
|
}
|
27
|
26
|
window.resetRpc = function () {
|
28
|
27
|
console.log('close rpc')
|
29
|
|
- window.rpcStream.source(true)
|
|
28
|
+ window.rpcStream.source('close')
|
30
|
29
|
window.rpc.close()
|
31
|
30
|
window.createRpc()
|
32
|
31
|
}
|