code: @Implementation
    protected void connect() throws IOException {
      if (state == SocketState.CLOSED) {
        throw new IOException("socket closed");
      }
      state = SocketState.CONNECTED;
    }
docs: This method doesn't perform an actual connection and returns immediately