Skip to content

Commit

Permalink
docs: improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Jan 22, 2025
1 parent 8b132e4 commit 9d191a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,8 @@ export default defineWebSocketHandler({
},
async open(peer) {
const { user } = await requireUserSession(peer)
const username = Object.values(user).filter(Boolean).join(' ')
peer.send(`Hello, ${username}!`)

peer.send(`Hello, ${user.name}!`)
},
message(peer, message) {
peer.send(`Echo: ${message}`)
Expand Down

0 comments on commit 9d191a1

Please sign in to comment.