Skip to content

Commit

Permalink
refactor(example): display message as string
Browse files Browse the repository at this point in the history
  • Loading branch information
6d7a committed Oct 19, 2022
1 parent a10228c commit e2256c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function App() {
});

client.on(QuitoEvent.MESSAGE_RECEIVED, (topic, message) => {
setMessage(`TOPIC "${topic}" ---> ${message}`);
setMessage(`TOPIC "${topic}" ---> ${Buffer.from(message).toString()}`);
});

client
Expand Down

0 comments on commit e2256c5

Please sign in to comment.