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

Method send

projects/JavaScript/proto/protoex.js:7037–7053  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

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

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