From 7df68b9dfd7a3c84f83259376dc6ecf533910c28 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 23 May 2024 16:55:56 +0100 Subject: [PATCH] Add links in README.md --- websocket-authentication/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/websocket-authentication/README.md b/websocket-authentication/README.md index 6ffda20..553e2ba 100644 --- a/websocket-authentication/README.md +++ b/websocket-authentication/README.md @@ -4,15 +4,17 @@ GraphQL over WebSocket with an authentication token passed through the `"connect # Configuration -The `WebMvcSecurityConfig` and `WebFluxSecurityConfig` configure the `AuthenticationWebSocketInterceptor` -required to perform the authentication. +[WebMvcSecurityConfig](src/main/java/com/example/greeting/WebMvcSecurityConfig) and +[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 `spring-boot-starter-web` and `spring-boot-starter-websocket` in build.gradle. # Running -1. Run `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. +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](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).