* Send AccountMessage value * @this {!Client} * @param {!AccountMessage} value AccountMessage value to send * @returns {!number} Sent bytes
(value)
| 6859 | * @returns {!number} Sent bytes |
| 6860 | */ |
| 6861 | send_AccountMessage (value) { // eslint-disable-line |
| 6862 | // Serialize the value into the FBE stream |
| 6863 | let serialized = this.AccountMessageSenderModel.serialize(value) |
| 6864 | console.assert((serialized > 0), 'proto.AccountMessage serialization failed!') |
| 6865 | console.assert(this.AccountMessageSenderModel.verify(), 'proto.AccountMessage validation failed!') |
| 6866 | |
| 6867 | // Log the value |
| 6868 | if (this.logging) { |
| 6869 | this.onSendLog(value.toString()) |
| 6870 | } |
| 6871 | |
| 6872 | // Send the serialized value |
| 6873 | return this.sendSerialized(serialized) |
| 6874 | } |
| 6875 | |
| 6876 | /** |
| 6877 | * Send message handler |