(to)
| 1086 | |
| 1087 | // When the socket is upgraded while we're probing |
| 1088 | function onupgrade(to) { |
| 1089 | if (transport && to.name !== transport.name) { |
| 1090 | debug('"%s" works - aborting "%s"', to.name, transport.name); |
| 1091 | freezeTransport(); |
| 1092 | } |
| 1093 | } |
| 1094 | |
| 1095 | // Remove all listeners on the transport and on self |
| 1096 | const cleanup = () => { |
nothing calls this directly
no test coverage detected