git ssb

1+

dinoworm ๐Ÿ› / catstack



Tree: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79

Files: 49c6e5459b68f2a30bcecf7727b8c9a99cfe4e79 / browser.js

456 bytesRaw
1const pull = require('pull-stream')
2const { entry } = require('inu')
3const { update } = require('yo-yo')
4const start = require('inu-engine')
5
6const app = require('./lib/app')
7
8module.exports = startBrowser
9
10function startBrowser () {
11 const sockets = app()
12 const store = entry(sockets)
13 const { views } = start(store)
14 const main = document.createElement('div')
15 document.body.appendChild(main)
16 pull(views(), pull.drain(update.bind(null, main)))
17}
18

Built with git-ssb-web