git ssb

0+

mixmix / ssb-server-plugin-intro



Tree: 3b3ab2c175fa746ca82741044d6da2b08e241adb

Files: 3b3ab2c175fa746ca82741044d6da2b08e241adb / client.js

475 bytesRaw
1const Client = require('ssb-client')
2
3Client((err, ssbServer) => {
4 // ssbServer (also commonly called sbot)
5 // a remote connection to our server
6
7 if (err) throw err
8
9 // console.log('methods', ssbServer)
10 ssbServer.whoami(console.log)
11 console.log('actualFriends methods', ssbServer.actualFriends)
12
13 // ssbServer.publish({ type: 'test', text: 'beep-boop'}, console.log)
14 // console.log(ssbServer.actualFriends)
15 // ssbServer.actualFriends.get(console.log)
16
17
18})
19
20

Built with git-ssb-web