add websockets
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<h2>Pages</h2>
|
||||
<a href="view-all-icons">View Icons</a>
|
||||
<a href="create-icon">Create Icons</a>
|
||||
<a href="/ws-example">WebSocket Example</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
13
templates/ws-example.html
Normal file
13
templates/ws-example.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Websocket Test</title>
|
||||
<script src="/assets/js/websocket_example.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="msg">Connection Closed</h1>
|
||||
<p id="msgCount">0</p>
|
||||
<button type="button" onclick="openConn()">Open</button>
|
||||
<button type="button" onclick="closeConn()">Close</button>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user