Class WebSocketAutoConfiguration
java.lang.Object
io.leangen.graphql.spqr.spring.autoconfigure.WebSocketAutoConfiguration
@AutoConfiguration
@EnableWebSocket
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(org.springframework.web.socket.config.annotation.WebSocketConfigurer.class)
@ConditionalOnProperty(name="graphql.spqr.ws.enabled",
havingValue="true",
matchIfMissing=true)
@ConditionalOnBean(graphql.schema.GraphQLSchema.class)
public class WebSocketAutoConfiguration
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketAutoConfiguration(graphql.GraphQL graphQL, SpqrProperties config, Optional<DataLoaderRegistryFactory> dataLoaderRegistryFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.socket.config.annotation.WebSocketConfigurerwebSocketExecutor(WebSocketContextFactory contextFactory) webSocketHandler(GraphQLWebSocketExecutor executor)
-
Constructor Details
-
WebSocketAutoConfiguration
@Autowired public WebSocketAutoConfiguration(graphql.GraphQL graphQL, SpqrProperties config, Optional<DataLoaderRegistryFactory> dataLoaderRegistryFactory)
-
-
Method Details
-
spqrWebSocketConfigurer
@Bean @ConditionalOnMissingBean(name="spqrWebSocketConfigurer") public org.springframework.web.socket.config.annotation.WebSocketConfigurer spqrWebSocketConfigurer(PerConnectionApolloHandler handler) -
webSocketContextFactory
-
webSocketExecutor
@Bean @ConditionalOnMissingBean public GraphQLWebSocketExecutor webSocketExecutor(WebSocketContextFactory contextFactory) -
webSocketHandler
@Bean @ConditionalOnMissingBean public PerConnectionApolloHandler webSocketHandler(GraphQLWebSocketExecutor executor)
-