onopen method
void
onopen([
- dynamic _
Called upon engine open
.
@api private
Implementation
void onopen([_]) {
_logger.fine('transport is open - connecting');
// write connect packet if necessary
if ('/' != nsp) {
if ((query != null) && (query!.isNotEmpty == true)) {
packet({'type': CONNECT, 'query': query});
} else {
packet({'type': CONNECT});
}
}
}