update sbot to use() phoenix-api

This commit is contained in:
Paul Frazee
2015-07-01 13:02:59 -05:00
parent f988d7fbe8
commit 026de532c8
3 changed files with 10 additions and 5 deletions

View File

@@ -25,9 +25,10 @@ module.exports = function (window, sbot, params) {
if (e.sender == window.webContents)
ipcPush.push(msg)
})
pull(ipcPush, rpcStream, pull.drain(function (msg) {
window.webContents.send('muxrpc-ssb', msg)
}))
pull(ipcPush, rpcStream, pull.drain(
function (msg) { window.webContents.send('muxrpc-ssb', msg) },
function (err) { if (err) { console.error(err) } }
))
// setup helper messages
ipc.on('fetch-config', function(e) {