mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-12 08:41:22 +00:00
docs: update examples for 0.29 (#742)
* docs: update examples for 0.29 * fix: update examples/libp2p-in-the-browser/package.json Co-authored-by: Vasco Santos <vasco.santos@moxy.studio> Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
This commit is contained in:
@ -29,7 +29,7 @@ function streamToConsole(stream) {
|
||||
// For each chunk of data
|
||||
for await (const msg of source) {
|
||||
// Output the data as a utf8 string
|
||||
console.log('> ' + uint8ArrayToString(msg).replace('\n', ''))
|
||||
console.log('> ' + msg.toString().replace('\n', ''))
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user