close method
Implementation
void close([int code = 1000, String reason = '']) {
_runInContext(() {
try {
socket.close(code, reason);
} catch (_) {
// Ignore close errors.
} finally {
manager.removeClient(this);
}
});
}