File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ Human readable event representation
613
613
| --- | --- | --- |
614
614
| topicCID | <code >string</code > | |
615
615
| author | <code >string</code > | The event author base58 id |
616
- | payload | <code >Buffer </code > | Event payload |
616
+ | payloadSize | <code >number </code > | Event payload size in bytes |
617
617
| publisher | <code >string</code > | The event publisher base58 id |
618
618
| parent | <code >string</code > | The event parent base58 id |
619
619
| isPublished | <code >boolean</code > | |
@@ -655,7 +655,7 @@ Human readable topic representation
655
655
| name | <code >string</code > | The topic name |
656
656
| author | <code >string</code > | The topic author base58 id |
657
657
| parent | <code >string</code > | The topic parent base58 id |
658
- | # | <code >object.< ; string, string> ; </code > | The topic sub topics, were the keys are names and the values base58 representations of the topic |
658
+ | # | <code >object.< ; string, string> ; </code > | The topic sub topics, where the keys are names and the values base58 representations of the topic |
659
659
| metadata | <code >object</code > | Topic metadata object |
660
660
| metadata.created | <code >string</code > | Date in ISO string format |
661
661
| metadata.allowedPublishers | <code >Array.< ; string> ; </code > | Array of base58 peer ids allowed to publish |
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const { linkUnmarshalling, linkMarshalling } = require('./utils')
28
28
* @typedef {Object } ReadableEvent
29
29
* @property {string } topicCID
30
30
* @property {string } author - The event author base58 id
31
- * @property {Buffer } payload - Event payload
31
+ * @property {number } payloadSize - Event payload size in bytes
32
32
* @property {string } publisher - The event publisher base58 id
33
33
* @property {string } parent - The event parent base58 id
34
34
* @property {boolean } isPublished
@@ -160,7 +160,7 @@ class EventNode {
160
160
return {
161
161
topicCID : this . topicCID . toBaseEncodedString ( ) ,
162
162
author : this . author . toB58String ( ) ,
163
- payload : this . payload ,
163
+ payloadSize : this . payload . length ,
164
164
publisher : this . publisher && this . publisher . toB58String ( ) ,
165
165
parent : this . parent && this . parent . toBaseEncodedString ( ) ,
166
166
isPublished : this . isPublished ,
You can’t perform that action at this time.
0 commit comments