onClose method

  1. @override
void onClose()
override

Overrides onClose.

Implementation

@override
void onClose() {
  if (writable == true) {
    // close pending poll request
    send([
      {'type': 'noop'}
    ]);
  }
  super.onClose();
}