Skip to content

Commit

Permalink
feat: SEA in worker
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Apr 26, 2023
1 parent 6544ffa commit 89f2430
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gun/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ onmessage = async m => {
console.log('In worker:', m.data)
const gun = Gun()
const pair = await SEA.pair()
gun.user().auth(pair, () => {
console.log('user authed', pair)
})
console.log(pair, gun)
gun.get('check').get('time').once(d => console.log(d))
gun.get('check').get('time').put(Date.now())
postMessage(`Answer: ${m.data}`)
Expand Down

0 comments on commit 89f2430

Please sign in to comment.