WebSocketsSample

Downloads19
Subscribe
0
Bookmark
0
This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility.
Details
Releases
Reviews
Issues

What's new in this version

WebSocketsSample

Simple WebSockets comunication example for InterSystems Caché

Functionality

There are currently 3 actions availible:

  • Echo - echoes text (or object) back to client
  • Get Variable - receives and displays local (eg. a) or global (eg. ^a) variable value. Subscripts availible (eg. ^a(1)).
  • Set Variable - sets local or global variable value. Subscripts availible.

Installation

  1. Download and import all files into any namespace
  2. Compile
  3. Open index.html in your web browser, for example URL: http://server:port/webapp/index.html
  4. In there fill:
  • WebSocket: server:port/webapp/WebSockets.Main.cls (check value, fills automatically on page load)
  • User: Cache Username
  • Password: pass for Cache User
  1. (Optional) Open browser console
  2. Press "Start WebSocket" button
  3. You can start testing websockets

Developement

This project uses cache-tort-git as a source control plug-in.

Rating
0 (0)
Category
Technology Example
Works with
Caché
Tags
Info
Version
1.21.3
Last updated
2018-06-01
Repository
Open
License
Link