Skip to content

Is it possible to receive message as string #217

Answered by sirganya
kefyru asked this question in Q&A
Discussion options

You must be logged in to vote

You can do it this way.

const buffer = Buffer.from(message);
const string = buffer.toString();

Replies: 11 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kevin1193
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@uasan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #217 on December 09, 2020 11:28.