reject method

Future<void> reject([
  1. Message? message
])
inherited

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();
  }
}