onOpen method
void
onOpen()
Called when connection is deemed open.
@api public
Implementation
void onOpen() {
_logger.fine('socket open');
readyState = 'open';
priorWebsocketSuccess = 'websocket' == transport!.name;
emit('open');
flush();
// we check for `readyState` in case an `open`
// listener already closed the socket
if ('open' == readyState &&
upgrade == true &&
transport is PollingTransport) {
_logger.fine('starting upgrade probes');
for (var i = 0, l = upgrades.length; i < l; i++) {
probe(upgrades[i]);
}
}
}