-
Notifications
You must be signed in to change notification settings - Fork 0
ihardcoder/kaazing-chat
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
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. enjoyAbout
a simple chat room using kaazing gateway, server side is constructed by NodeJS
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published