@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Import(value=WampReactiveConfiguration.class) public @interface EnableReactiveWamp
@Configuration class to enable the WAMP v2 support.
A default endpoint '/wamp' will be registered.
@SpringBootApplication
@EnableReactiveWamp
public class Application {
}
To configure certain aspects of the wamp2spring library you can implement the
WampReactiveConfigurer interface with a @Configuration class.
@SpringBootApplication
@EnableReactiveWamp(disable = Feature.DEALER)
public class Application implements WampConfigurer {
@Override
public void addArgumentResolvers(
List argumentResolvers) {
}
}
If your application needs more control about the wamp2spring configuration you can
subclass a @Configuration class from WampReactiveConfiguration. Do not add
the @EnableReactiveWamp annotation when you configure WAMP this way.
@SpringBootApplication
public class Application extends WampConfiguration {
@Override
protected String getWebSocketHandlerPath() {
return "/wampsession";
}
}
public abstract Feature[] disable
Copyright © 2017–2018. All rights reserved.