(data)
| 334 | } |
| 335 | |
| 336 | buildPayload(data) { |
| 337 | const ts = getCurrentUserISOString(); |
| 338 | if (data == null) { |
| 339 | return { ts, data: {} }; |
| 340 | } |
| 341 | if (typeof data !== "object" || Array.isArray(data)) { |
| 342 | throw new Error("WebSocket payload must be a plain object"); |
| 343 | } |
| 344 | return { ts, data: { ...data } }; |
| 345 | } |
| 346 | |
| 347 | applyProducerOptions(payload, normalizedOptions, allowances) { |
| 348 | const result = payload; |
no test coverage detected