Simple WebSockets comunication example for InterSystems Caché
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.
- Download and import all files into any namespace
- Compile
- Open index.html in your web browser, for example URL:
http://server:port/webapp/index.html
- 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
- (Optional) Open browser console
- Press "Start WebSocket" button
- You can start testing websockets
This project uses cache-tort-git as a source control plug-in.