* Send value * @this {!Client} * @param {!object} value Value to send * @returns {!number} Sent bytes
(value)
| 7035 | * @returns {!number} Sent bytes |
| 7036 | */ |
| 7037 | send (value) { |
| 7038 | if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageSenderModel.fbeType)) { |
| 7039 | return this.send_OrderMessage(value) |
| 7040 | } |
| 7041 | if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageSenderModel.fbeType)) { |
| 7042 | return this.send_BalanceMessage(value) |
| 7043 | } |
| 7044 | if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageSenderModel.fbeType)) { |
| 7045 | return this.send_AccountMessage(value) |
| 7046 | } |
| 7047 | let result = 0 |
| 7048 | result = this._protoClient.send(value) |
| 7049 | if (result > 0) { |
| 7050 | return result |
| 7051 | } |
| 7052 | return 0 |
| 7053 | } |
| 7054 | |
| 7055 | /** |
| 7056 | * Send OrderMessage value |
no test coverage detected