This demo implements a push client for the ZeroC's Chat Demo Application. By default it will connect to a chat server running on demo.zeroc.com. To set up your own server follow the instructions from the C++11 Chat Demo README to start the server.
Once you have configured and started the Chat Demo server and router, edit Ice.Default.Router property in js/Chat/config.json. You will then be able to log into your chat server using this page.
The minified script es5/Client.min.js includes:
node_modules/ice/lib/es5/Ice.js (The Ice run-time library)node_modules/ice/lib/es5/Glacier2.js (The Glacier2 library)es5/generated/Chat.js and es5/generated/ChatSession.js (The generated code for this demo)es5/Client.js (The client application)To use the minified version you should edit the js/Chat/index.html
file and comment out the non-optimized scripts:
<!--
Scripts used during development, for optimized builds comment
the following scripts and uncomment es5/Client.min.js
below
-->
<!-- Ice.js (Ice run-time library) -->
<script type="text/javascript" src="../../../node_modules/ice/lib/es5/Ice.js"></script>
<!-- Glacier2.js (Glacier2 run-time library) -->
<script type="text/javascript" src="../../../node_modules/ice/lib/es5/Glacier2.js"></script>
<!-- Chat.js (Demo generated code) -->
<script type="text/javascript" src="es5/generated/Chat.js"></script>
<!-- ChatSession.js (Demo generated code) -->
<script type="text/javascript" src="es5/generated/ChatSession.js"></script>
<!-- Client.js (Chat Demo Application) -->
<script type="text/javascript" src="es5/Client.js"></script>
Then uncomment the script tag for the minified version
<!--
Uncomment the following script to use a minified version of the
scripts that includes: the Ice and Glacier2 run-time libraries, the
generated code and the demo application.
-->
<!--<script src="es5/Client.min.js"></script>-->
×