Allow HTTP GET and WebSocket to use the same path

Closes gh-30
This commit is contained in:
Rossen Stoyanchev
2021-02-05 21:07:27 +00:00
parent 2ebbd464b8
commit 4e735f1ca8
4 changed files with 35 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
spring.graphql.websocket.path=/graphql/websocket
spring.graphql.websocket.path=/graphql
management.endpoints.web.exposure.include=health,metrics,info
logging.level.org.springframework.web=debug
logging.level.org.springframework.http=debug

View File

@@ -8,7 +8,7 @@
<body>
<script type="text/javascript">
const client = graphqlWs.createClient({
url: 'ws://localhost:8080/graphql/websocket',
url: 'ws://localhost:8080/graphql',
});
// query