@Override
  public boolean sendFrame(@NotNull final ProtocolFrame frame) {
    logFrame(frame, true);

    try {
      final byte[] packed = frame.pack();
      return sendMessageImpl(packed);
    }
    catch (SocketException se) {
      onSocketException();
    }
    catch (IOException e) {
      LOG.debug(e);
    }
    return false;
  }
@Override
  public boolean sendFrame(@NotNull final ProtocolFrame frame)