* Send AccountMessage value * @this {!Sender} * @param {!AccountMessage} value AccountMessage value to send * @returns {!number} Sent bytes
(value)
| 6432 | * @returns {!number} Sent bytes |
| 6433 | */ |
| 6434 | send_AccountMessage (value) { // eslint-disable-line |
| 6435 | // Serialize the value into the FBE stream |
| 6436 | let serialized = this.AccountMessageModel.serialize(value) |
| 6437 | console.assert((serialized > 0), 'proto.AccountMessage serialization failed!') |
| 6438 | console.assert(this.AccountMessageModel.verify(), 'proto.AccountMessage validation failed!') |
| 6439 | |
| 6440 | // Log the value |
| 6441 | if (this.logging) { |
| 6442 | this.onSendLog(value.toString()) |
| 6443 | } |
| 6444 | |
| 6445 | // Send the serialized value |
| 6446 | return this.sendSerialized(serialized) |
| 6447 | } |
| 6448 | |
| 6449 | /** |
| 6450 | * Send message handler |