(message: any)
| 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) => { |
no outgoing calls
no test coverage detected