| 1 |
<html> |
| 2 |
<head> |
| 3 |
<meta charset=utf-8 http-equiv="Content-Language" content="en"/> |
| 4 |
<script src="/example.js"></script> |
| 5 |
</head> |
| 6 |
<body> |
| 7 |
<img src="libwebsockets.org-logo.svg"> |
| 8 |
<img src="strict-csp.svg"><br> |
| 9 |
|
| 10 |
LWS chat <b>minimal ws broker example</b>.<br> |
| 11 |
This page opens two separate ws connections...<br> |
| 12 |
A subscriber ws connection fills this textarea<br> |
| 13 |
with data it receives from the broker... |
| 14 |
<br> |
| 15 |
<br> |
| 16 |
<textarea id=r readonly cols=40 rows=10></textarea><br> |
| 17 |
<br> |
| 18 |
... and a publisher ws connection sends the string<br> |
| 19 |
in the box below to the broker when you press Send.<br> |
| 20 |
<input type="text" id=m cols=40 rows=1> |
| 21 |
<button id=b>Send</button> |
| 22 |
</body> |
| 23 |
</html> |
| 24 |
|