mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
_examples/websocket/basic: add a nodejs client and provide a README.md on how to run the websocket clients and the server
Former-commit-id: a98a80996d7d95fa947e72c71803407682229fa7
This commit is contained in:
10
_examples/websocket/basic/browserify/client.html
Normal file
10
_examples/websocket/basic/browserify/client.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!-- the message's input -->
|
||||
<input id="input" type="text" />
|
||||
|
||||
<!-- when clicked then a websocket event will be sent to the server, at this example we registered the 'chat' -->
|
||||
<button id="sendBtn" disabled>Send</button>
|
||||
|
||||
<!-- the messages will be shown here -->
|
||||
<pre id="output"></pre>
|
||||
|
||||
<script src="./bundle.js"></script>
|
||||
Reference in New Issue
Block a user