(id)
| 391 | // --- Public API: query --- |
| 392 | |
| 393 | getById(id) { |
| 394 | const msg = this._messages.get(id); |
| 395 | return msg ? { ...msg } : null; |
| 396 | } |
| 397 | |
| 398 | poll({ channel, type, limit } = {}) { |
| 399 | const max = Math.max(1, Math.min(limit || 20, 100)); |
no outgoing calls
no test coverage detected