org.kurento.jsonrpc.client.JsonRpcWSConnectionListener Java Examples

The following examples show how to use org.kurento.jsonrpc.client.JsonRpcWSConnectionListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OpenViduClient.java    From openvidu with Apache License 2.0 5 votes vote down vote up
public OpenViduClient(String wsUri) {
  this(new JsonRpcClientWebSocket(wsUri, new JsonRpcWSConnectionListener() {

    @Override
    public void reconnected(boolean sameServer) {
    }

    @Override
    public void disconnected() {
      log.warn("JsonRpcWebsocket connection: Disconnected");
    }

    @Override
    public void connectionFailed() {
      log.warn("JsonRpcWebsocket connection: Connection failed");
    }

    @Override
    public void connected() {
    }

    @Override
    public void reconnecting() {
      log.warn("JsonRpcWebsocket connection: is reconnecting");
    }
  }, new SslContextFactory(true)));
}
 
Example #2
Source File: KurentoRoomClient.java    From kurento-room with Apache License 2.0 5 votes vote down vote up
public KurentoRoomClient(String wsUri) {
  this(new JsonRpcClientWebSocket(wsUri, new JsonRpcWSConnectionListener() {

    @Override
    public void reconnected(boolean sameServer) {
    }

    @Override
    public void disconnected() {
      log.warn("JsonRpcWebsocket connection: Disconnected");
    }

    @Override
    public void connectionFailed() {
      log.warn("JsonRpcWebsocket connection: Connection failed");
    }

    @Override
    public void connected() {
    }

    @Override
    public void reconnecting() {
      log.warn("JsonRpcWebsocket connection: is reconnecting");
    }
  }, new SslContextFactory(true)));
}
 
Example #3
Source File: JsonRpcConnectionListenerKurento.java    From kurento-java with Apache License 2.0 5 votes vote down vote up
public static JsonRpcWSConnectionListener create(KurentoConnectionListener listener) {

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

    return new JsonRpcConnectionListenerKurento(listener);
  }