close method

void close(
  1. int code, [
  2. String? reason
])

Closes the device stream with code and reason, as the relay does for the host.

Implementation

void close(int code, [String? reason]) => _close(code, reason);