reject method
Reject connection with optional message
.
Implementation
Future<void> reject([Message? message]) async {
try {
if (message != null) {
add([
0x05, // socks version
message.byte, // response message
]); // error here
}
} finally {
await close();
}
}