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

Method send

projects/JavaScript/proto/proto.js:7477–7488  ·  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

7475 * @returns {!number} Sent bytes
7476 */
7477 send (value) {
7478 if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageSenderModel.fbeType)) {
7479 return this.send_OrderMessage(value)
7480 }
7481 if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageSenderModel.fbeType)) {
7482 return this.send_BalanceMessage(value)
7483 }
7484 if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageSenderModel.fbeType)) {
7485 return this.send_AccountMessage(value)
7486 }
7487 return 0
7488 }
7489
7490 /**
7491 * Send OrderMessage value

Callers 1

requestMethod · 0.95

Calls 3

send_OrderMessageMethod · 0.95
send_BalanceMessageMethod · 0.95
send_AccountMessageMethod · 0.95

Tested by

no test coverage detected