Polishing websocket sample

This commit is contained in:
Rossen Stoyanchev
2021-07-06 16:34:21 +01:00
parent 16ee8ecde0
commit 27e883164f
2 changed files with 4 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
<script type="text/javascript" src="https://unpkg.com/graphql-ws/umd/graphql-ws.js"></script>
</head>
<body>
<p>Check the console for subscription messages.</p>
<script type="text/javascript">
const client = graphqlWs.createClient({
url: 'ws://localhost:8080/graphql',