The @Bean method now returns WebSocketHandler allowing it to be decorated via WebSocketHandlerDecorator.