4 <script src="/lws-common.js"></script>
5 <link rel="stylesheet" type="text/css" href="lwsgs.css"/>
6 <script src="lwsgs.js"></script>
16 <div id=lwsgs class="lwsgs"></div>
19 <img src="strict-csp.svg">
23 <tr><td colspan="3" class="h99">
24 <table class="c100"><tr>
26 <span id="nolog" class="group2">
27 This is a demo application for lws generic-sessions.<br><br>
28 It's a simple messageboard.<br><br>
29 What's interesting about it is there is <b>no serverside scripting</b>,<br>
30 instead client js makes a wss:// connection back to the server<br>
31 and then reacts to JSON from the ws protocol. Sessions stuff is <br>
32 handled by lws generic sessions, making the <a href="https://libwebsockets.org/git/libwebsockets/tree/plugins/generic-sessions/protocol_generic_sessions.c">actual<br>
33 test application</a> <a href="https://libwebsockets.org/git/libwebsockets/tree/plugins/generic-sessions/protocol_lws_messageboard.c">very small</a>.<br><br>
34 And because it's natively websocket, it's naturally connected<br>
35 for dynamic events and easy to maintain.
37 Register / Login at the top right to see and create new messages.
39 <span id="logged" class="group2">
41 <form action="/msg" method="post" target="hidden">
43 <textarea id="msg" placeholder="type your message here" cols="40" rows="5" name="msg"></textarea><br>
44 <input type="submit" id="send" name="send" disabled=1>
49 <span id="messages" ></span>
51 <span id="debug" class="group2"></span>
55 <iframe name="hidden" class="hidden"></iframe>