Send reply to init
This commit is contained in:
parent
1c16d44234
commit
6d2ebbcc36
1 changed files with 4 additions and 0 deletions
|
|
@ -94,6 +94,10 @@ const handleMsg = async msg => {
|
|||
logger.info('Connected peers:', currentPeers)
|
||||
}, 30000)
|
||||
user = gun.user()
|
||||
|
||||
sendMsg({
|
||||
type: 'init'
|
||||
})
|
||||
}
|
||||
if (msg.type === 'auth') {
|
||||
const { alias, pass } = msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue