
package org.kurento.client;

import org.kurento.jsonrpc.client.JsonRpcWSConnectionListener;

public class JsonRpcConnectionListenerKurento implements JsonRpcWSConnectionListener {

  private KurentoConnectionListener listener;

  public JsonRpcConnectionListenerKurento(KurentoConnectionListener listener) {
    this.listener = listener;
  }

  @Override
  public void connectionFailed() {
    listener.connectionFailed();
  }

  @Override
  public void connected() {
    listener.connected();
  }

  @Override
  public void disconnected() {
    listener.disconnected();
  }

  @Override
  public void reconnected(boolean sameServer) {
    listener.reconnected(sameServer);
  }

  public static JsonRpcWSConnectionListener create(KurentoConnectionListener listener) {

    if (listener == null) {
      return null;
    }

    return new JsonRpcConnectionListenerKurento(listener);
  }

  @Override
  public void reconnecting() {

  }

}

@@ -1,9 +1,8 @@
-%0A
 package 
@@ -923,16 +923,44 @@
 ing() %7B%0A
+    listener.disconnected();
 %0A  %7D%0A%0A%7D%0A

Call disconnected event when reconnecting