Fix particle encoding (#974)

This commit is contained in:
Dima
2020-11-11 22:05:54 +03:00
committed by GitHub
parent ff0a5ae080
commit abf19810dc
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "fluence", "name": "fluence",
"version": "0.7.63", "version": "0.7.66",
"description": "the browser js-libp2p client for the Fluence network", "description": "the browser js-libp2p client for the Fluence network",
"main": "./dist/fluence.js", "main": "./dist/fluence.js",
"typings": "./dist/fluence.d.ts", "typings": "./dist/fluence.d.ts",

File diff suppressed because one or more lines are too long

View File

@ -129,7 +129,7 @@ export class FluenceConnection {
const conn = await this.node.dialProtocol(this.address, PROTOCOL_NAME) as {stream: Stream; protocol: string}; const conn = await this.node.dialProtocol(this.address, PROTOCOL_NAME) as {stream: Stream; protocol: string};
pipe( pipe(
[particleStr], [Buffer.from(particleStr, 'utf8')],
// at first, make a message varint // at first, make a message varint
encode(), encode(),
conn.stream.sink, conn.stream.sink,