mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-03-15 07:20:49 +00:00
Fix particle encoding (#974)
This commit is contained in:
parent
ff0a5ae080
commit
abf19810dc
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "fluence",
|
||||
"version": "0.7.63",
|
||||
"version": "0.7.66",
|
||||
"description": "the browser js-libp2p client for the Fluence network",
|
||||
"main": "./dist/fluence.js",
|
||||
"typings": "./dist/fluence.d.ts",
|
||||
|
File diff suppressed because one or more lines are too long
@ -129,7 +129,7 @@ export class FluenceConnection {
|
||||
const conn = await this.node.dialProtocol(this.address, PROTOCOL_NAME) as {stream: Stream; protocol: string};
|
||||
|
||||
pipe(
|
||||
[particleStr],
|
||||
[Buffer.from(particleStr, 'utf8')],
|
||||
// at first, make a message varint
|
||||
encode(),
|
||||
conn.stream.sink,
|
||||
|
Loading…
x
Reference in New Issue
Block a user