* Send value * @this {!FinalClient} * @param {!object} value Value to send * @returns {!number} Sent bytes
(value)
| 7801 | * @returns {!number} Sent bytes |
| 7802 | */ |
| 7803 | send (value) { |
| 7804 | if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageSenderModel.fbeType)) { |
| 7805 | return this.send_OrderMessage(value) |
| 7806 | } |
| 7807 | if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageSenderModel.fbeType)) { |
| 7808 | return this.send_BalanceMessage(value) |
| 7809 | } |
| 7810 | if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageSenderModel.fbeType)) { |
| 7811 | return this.send_AccountMessage(value) |
| 7812 | } |
| 7813 | let result = 0 |
| 7814 | result = this._protoClient.send(value) |
| 7815 | if (result > 0) { |
| 7816 | return result |
| 7817 | } |
| 7818 | return 0 |
| 7819 | } |
| 7820 | |
| 7821 | /** |
| 7822 | * Send OrderMessage value |
no test coverage detected