MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / send

Method send

projects/JavaScript/proto/protoex.js:7803–7819  ·  view source on GitHub ↗

* Send value * @this {!FinalClient} * @param {!object} value Value to send * @returns {!number} Sent bytes

(value)

Source from the content-addressed store, hash-verified

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

Callers 1

requestMethod · 0.95

Calls 4

send_OrderMessageMethod · 0.95
send_BalanceMessageMethod · 0.95
send_AccountMessageMethod · 0.95
sendMethod · 0.45

Tested by

no test coverage detected