Commit 8d4cac64 authored by benjaminParisel's avatar benjaminParisel Committed by GitHub

defect(preview): Live reload preview when page change (#2728)

* Issue is here after upgrading Spring framework version

Covers [UID-99](https://bonitasoft.atlassian.net/browse/UID-99)
parent c08746c3
......@@ -16,13 +16,13 @@ package org.bonitasoft.web.designer.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.simp.config.MessageBrokerRegistry;
import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer;
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
public static final String PREVIEWABLE_UPDATE = "/previewableUpdates";
public static final String PREVIEWABLE_REMOVAL= "/previewableRemoval";
......
......@@ -37,7 +37,7 @@ angular.module('bonitasoft.designer.preview').factory('webSocket', function($roo
var connect = function() {
let deferred = $q.defer();
client.connect('', (frame) => deferred.resolve(frame), (err) => deferred.reject(err));
client.connect({}, (frame) => deferred.resolve(frame), (err) => deferred.reject(err));
return deferred.promise;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment