chore(websocket): Convert websocket example to vanilla ts (#805)

* chore(websocket): Convert ws example to vanilla-ts

* fix gitignore
This commit is contained in:
Fabian-Lars
2023-12-07 15:03:37 +01:00
committed by GitHub
parent 8d00fc08f0
commit eef088dde4
42 changed files with 352 additions and 824 deletions
@@ -0,0 +1,20 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebSocket Plugin Example</title>
</head>
<body>
<div id="app">
<div>
<input bind:value="{message}" />
<button on:click="{send}">Send</button>
<button on:click="{disconnect}">Disconnect</button>
</div>
<div id="response-container"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>