Skip to content

Commit

Permalink
chore(examples): fix typo (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
39sho authored Jan 21, 2025
1 parent 14b4f6b commit f33efaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/h3/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

ws.addEventListener("message", async (event) => {
let data =
typeof event.data === "string" ? data : await event.data.text();
typeof event.data === "string" ? event.data : await event.data.text();
const { user = "system", message = "" } = data.startsWith("{")
? JSON.parse(data)
: { message: data };
Expand Down

0 comments on commit f33efaf

Please sign in to comment.