(data)
| 2829 | } |
| 2830 | |
| 2831 | function isConnectionLike(data) { |
| 2832 | return data && |
| 2833 | typeof data === 'object' && |
| 2834 | typeof data.url === 'string' && |
| 2835 | Array.isArray(data.messages); |
| 2836 | } |
| 2837 | |
| 2838 | function normalizeConnection(connection, index) { |
| 2839 | if (!connection || typeof connection !== 'object' || !Array.isArray(connection.messages)) { |
no outgoing calls
no test coverage detected