Add links in README.md

This commit is contained in:
Rossen Stoyanchev
2024-05-23 16:55:56 +01:00
committed by GitHub
parent dcfacfdb36
commit 7df68b9dfd

View File

@@ -4,15 +4,17 @@ GraphQL over WebSocket with an authentication token passed through the `"connect
# Configuration # Configuration
The `WebMvcSecurityConfig` and `WebFluxSecurityConfig` configure the `AuthenticationWebSocketInterceptor` [WebMvcSecurityConfig](src/main/java/com/example/greeting/WebMvcSecurityConfig) and
required to perform the authentication. [WebFluxSecurityConfig](src/main/java/com/example/greeting/WebFluxSecurityConfig) configure the
`AuthenticationWebSocketInterceptor` to perform authentication. See the
[reference docs](https://docs.spring.io/spring-graphql/reference/transports.html#server.interception.websocket).
To switch between WebMvc or WebFlux as the transport, comment in and out To switch between WebMvc or WebFlux as the transport, comment in and out
`spring-boot-starter-web` and `spring-boot-starter-websocket` in build.gradle. `spring-boot-starter-web` and `spring-boot-starter-websocket` in build.gradle.
# Running # Running
1. Run `GreetingApplication` from your IDE, or `./gradlew bootRun` from the command line to start the server. 1. Run [GreetingApplication](src/main/java/com/example/greeting/GreetingApplication) from your IDE, or `./gradlew bootRun` from the command line to start the server.
2. Run `GreetingClient`, or `./gradlew clientRun` to execute a subscription. 2. Run [GreetingClient](src/main/java/com/example/greeting/GreetingClient), or `./gradlew clientRun` to perform a subscription.
Or you can run the integration tests in `GreetingApplicationTests`. Or you can run the integration tests in [GreetingApplicationTests](src/test/java/com/example/greeting/GreetingApplicationTests).