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

Method send

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

6798 * @returns {!number} Sent bytes
6799 */
6800 send (value) {
6801 if ((value instanceof OrderMessage) && (value.fbeType === this.OrderMessageSenderModel.fbeType)) {
6802 return this.send_OrderMessage(value)
6803 }
6804 if ((value instanceof BalanceMessage) && (value.fbeType === this.BalanceMessageSenderModel.fbeType)) {
6805 return this.send_BalanceMessage(value)
6806 }
6807 if ((value instanceof AccountMessage) && (value.fbeType === this.AccountMessageSenderModel.fbeType)) {
6808 return this.send_AccountMessage(value)
6809 }
6810 return 0
6811 }
6812
6813 /**
6814 * 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