MCPcopy Create free account
hub / github.com/evcc-io/evcc / send

Method send

tests/simulator/ocppClient.ts:152–158  ·  view source on GitHub ↗
(message: any)

Source from the content-addressed store, hash-verified

150 }
151
152 private send(message: any): void {
153 if (this.ws && this.connected) {
154 const data = JSON.stringify(message);
155 console.log(`[OCPP Client] Sending:`, data);
156 this.ws.send(data);
157 }
158 }
159
160 private async call(action: string, payload: any): Promise<any> {
161 return new Promise((resolve, reject) => {

Callers 5

handleServerRequestMethod · 0.95
callMethod · 0.95
SendMethod · 0.45
ws.spec.tsFile · 0.45
handleMessageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected