v2 / examples / veb / websocket / index.html
17 lines · 17 sloc · 626 bytes · 01fd719116f84ae22ee570188df6a26464b8268f
Raw
1<!doctype html>
2<html lang=en>
3 <head>
4 <meta charset=utf-8>
5 <title>veb websocket example</title>
6 <link rel="stylesheet" type="text/css" href="/assets/style.css">
7 </head>
8 <body>
9 <p>This is an example of using V's `veb` and `net.websocket` modules in
10 the same app, where the websocket connection happens on the /ws route of
11 your veb app.</p>
12 <ul id="message-list"></ul>
13 <input id="message-input" placeholder="Enter your message here" value=""/>
14 <div>Client status: <span id="message-status">---</span></div>
15 <script type="text/javascript" src="/assets/client.js"></script>
16 </body>
17</html>
18