• Menu
  • Readme
  • Source
Sign in

Loading Please Wait...

  • Chat Demo

  • Menu
  • Sign out

    Chat Demo Readme


    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 though a proxy on https://zeroc.com. There is also a Live Client which connects to the same server.

    To set up your own server follow the instructions from the C++ 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.

    Using the minified scripts

    The minified script browser/Client.min.js includes:

    • Ice.js (The Ice run-time library)
    • Glacier2.js (The Glacier2 library)
    • Chat.js and ChatSession.js (The generated code for this demo)
    • 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 browser/Client.min.js
             below -->
        <!-- Ice.js (Ice run-time library) -->
        <script type="text/javascript" src="../../../lib/Ice.js"></script>
        <!-- Glacier2.js (Glacier2 run-time library) -->
        <script type="text/javascript" src="../../../lib/Glacier2.js"></script>
        <!-- Chat.js (Demo generated code) -->
        <script type="text/javascript" src="Chat.js"></script>
        <!-- ChatSession.js (Demo generated code) -->
        <script type="text/javascript" src="ChatSession.js"></script>
        <!-- Client.js (Chat Demo Application) -->
        <script type="text/javascript" src="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="Client.min.js"></script>-->
            
    ×
    ×
    Slice
    JavaScript
    HTML
    File: Chat/Chat.ice
    
                    
    File: Chat/ChatSession.ice
    
                
    File: Chat/Client.js
    
                
    File: Chat/index.html
    
                

    ZeroC

    © 2003-2016 ZeroC, Inc. All rights reserved.