()
| 2257 | } |
| 2258 | // When the socket is closed while we're probing |
| 2259 | function onclose() { |
| 2260 | onerror("socket closed"); |
| 2261 | } |
| 2262 | // When the socket is upgraded while we're probing |
| 2263 | function onupgrade(to) { |
| 2264 | if (transport && to.name !== transport.name) { |