-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (83 loc) · 2.43 KB
/
index.html
File metadata and controls
83 lines (83 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<title>Web Socket Client</title>
<link rel="stylesheet" type="text/css" href="index.css" />
<script type="text/javascript" src="jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="index.js"></script>
</head>
<body>
<div class="frame">
<div class="controls">
<div class="control-pane">
<table>
<tr>
<th>Status:</th>
<td class="status"></td>
</tr>
<tr>
<th>URL:</th>
<td><input type="text" id="endpoint" value="ws://localhost/" /></td>
</tr>
<tr>
<th>Protocol(s):</th>
<td><input type="text" id="protocols" value="" /></td>
</tr>
<tr>
<th></th>
<td><label><input type="checkbox" value="1" id="reconnect" /> Auto-Reconnect</label></td>
</tr>
<tr>
<th></th>
<td>
<input type="submit" id="btn_connect" value="Connect" />
</td>
</tr>
</table>
</div>
<div class="control-pane">
<table>
<tr>
<th> </th>
<td></td>
</tr>
<tr>
<th>Close Status:</th>
<td><input type="text" id="close_status" value="1000" /></td>
</tr>
<tr>
<th></th>
<td id="close_status_text"> </td>
</tr>
<tr>
<th>Close Reason:</th>
<td><input type="text" id="close_reason" value="" /></td>
</tr>
<tr>
<th></th>
<td><input type="submit" id="btn_close" value="Close" /></td>
</tr>
</table>
</div>
<div class="control-pane">
<table>
<tr>
<th style="text-align: left;">Message Text</th>
</tr>
<tr>
<td><textarea id="message_text"></textarea></td>
</tr>
<tr>
<td><input type="submit" id="btn_send" value="Send" /></td>
</tr>
</table>
</div>
</div> <!-- /controls -->
<div class="log">
<input type="submit" id="btn_clear_log" value="Clear" />
<div class="entries">
</div>
</div> <!-- /log -->
</div> <!-- /frame -->
</body>
</html>