Skip to content

ihardcoder/kaazing-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple JavaScript client, the server is constructed by NodeJS, imformations are transported with WebScocket protocol through Kaazing Gateway.


1. put all files into GATEWAY_HOME\web\extras\samples\html5-javascript\demo-kaazing

2. open GATEWAY_HOME\conf\gateway-config.xml, and copy follow codes into it 

  <service>
    <accept>ws://${gateway.hostname}:${gateway.extras.port}/conn</accept>
    <connect>ws://${gateway.hostname}:8888/</connect>
    <type>proxy</type>
   
    <realm-name>demo</realm-name>
 
    <cross-site-constraint>
      <allow-origin>http://${gateway.hostname}:${gateway.extras.port}</allow-origin>
    </cross-site-constraint>
  </service>

3. run: npm install ws 

4. run: node server

5. start up Kaazing Gateway

6. open your browser and visit http://localhost:8002/samples/html5-javascript/demo-kaazing/, the port "8002" could be set in GATEWAY_HOME\conf\gateway-config.xml by yourself

7. enjoy

About

a simple chat room using kaazing gateway, server side is constructed by NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published