(payload:{type: string, [attributes:string]: any})
| 174 | } |
| 175 | |
| 176 | send(payload:{type: string, [attributes:string]: any}) { |
| 177 | let message = JSON.stringify(payload); |
| 178 | if(!this.localEve) { |
| 179 | this.socketSend(message); |
| 180 | } else { |
| 181 | this.worker.postMessage(message); |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | sendControl(message:string) { |
| 186 | if(!this.localControl) { |
no test coverage detected