mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-06-28 15:21:33 +00:00
Fix particle encoding (#974)
This commit is contained in:
@ -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
@ -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,
|
||||||
|
Reference in New Issue
Block a user