Skip to content

Commit

Permalink
fix: maake-oob docs typo
Browse files Browse the repository at this point in the history
  • Loading branch information
icidasset committed Mar 4, 2024
1 parent ad47d1e commit c3e36c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/demo/partykit.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"main": "src/partykit/server.ts",
"name": "radical-party"
"name": "radical-party",
"compatibilityDate": "2024-03-04"
}
2 changes: 1 addition & 1 deletion examples/demo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import QRCode from 'qrcode'

// 🏔️

const HOST = 'localhost:1999'
const HOST = 'radical-party.icidasset.partykit.dev'

// 🧩

Expand Down
4 changes: 2 additions & 2 deletions packages/maake-oob/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ const url = new URL(location.href)
const challenge = url.searchParams.get('challenge')
const publicKey = url.searchParams.get('publicKey')

const consumer = new Consumer(params)
const consumer = new Consumer({ challenge, publicKey })
```

Listen for events on the consumer side:

```js
consumer.on('message', ({ did, payload }) => {
consumer.on('message', ({ did, msgId, payload }) => {
console.log('Consumer got message from', did)
})
```
Expand Down

0 comments on commit c3e36c4

Please sign in to comment.