reset method

void reset()

Implementation

void reset() {
  if (socket != null) {
    socket?.dispose();
    socket = null;
    resetDefaults();
  } else {
    print("Socket not initialized");
  }
}