Home Applications WebSocketsSample

WebSocketsSample

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
0
0 reviews
0
Awards
166
Views
0
IPM installs
0
0
Details
Releases  (1)
Reviews
Issues
Simple WebSockets communication example for InterSystems Caché

What's new in this version

Initial Release

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.

Version
1.21.301 Jun, 2018
Category
Technology Example
Works with
Caché
First published
23 Aug, 2018
Last checked by moderator
27 Jun, 2023Works