0

when i use the new "websocket" scope in a component, i get:

java.lang.IllegalStateException: No Scope registered for scope name 'websocket'

controller:

@RestController
@Scope(value = "websocket", proxyMode = ScopedProxyMode.TARGET_CLASS)
@Slf4j
public class GenericWrapperController extends TextWebSocketHandler {

spring version 4.3.3.RELEASE and 1.4.1.RELEASE for springboot. my guess its version related however the docs say this scope was introduced in 4.1 already.

1 Answers1

0

annotation @EnableWebSocketMessageBroker is required in a configuration class to enable the websocket scope. @EnableWebSocket is NOT suffcicient