(data)
| 85 | } |
| 86 | |
| 87 | function isConnectionLike(data) { |
| 88 | return data && |
| 89 | typeof data === 'object' && |
| 90 | typeof data.url === 'string' && |
| 91 | Array.isArray(data.messages); |
| 92 | } |
| 93 | |
| 94 | function normalizeConnection(connection, index) { |
| 95 | if (!connection || typeof connection !== 'object' || !Array.isArray(connection.messages)) { |
no outgoing calls
no test coverage detected