* Send a get_props response back to the server. * @param requestId The request ID from the get_props request * @param props The property values
(
requestId: string,
props: Record<string, unknown>
)
| 235 | * @param props The property values |
| 236 | */ |
| 237 | public sendGetPropsResponse( |
| 238 | requestId: string, |
| 239 | props: Record<string, unknown> |
| 240 | ): void { |
| 241 | if (!this.worker || !this.isConnected) { |
| 242 | return; |
| 243 | } |
| 244 | |
| 245 | this.worker.port.postMessage({ |
| 246 | type: WorkerMessageType.GET_PROPS_RESPONSE, |
| 247 | rendererId: this.rendererId, |
| 248 | requestId, |
| 249 | payload: props |
| 250 | }); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Check if the worker is connected. |
no outgoing calls
no test coverage detected