WebSocket Client Demo in IRIS 2020.1


Follow
0
Star
1
Details
Version history
Issues

What's new in this version

Initial Release

This example demonstrates the use of the %Net.WebSocket feature available in IRIS 2020.1

IRIS 2010.1 brought us a new feature: %Net.WebSocket.Client

As a continuation of my series of WS Clients I just couldn't resist trying it. Well, this is the result and it was rather simple in the end.

After I succeeded in my personal fight against Windows Firewall ;-) You basically need to prepare 2 classes:

Credentials for User, PW, SSL an Event Listener and a 3rd to use the client. It could be a .MAC routine as well. The example uses the WS.EchoServer (a derivate from former SAMPLES in Caché). The default assumption is to have Client and Server on the same system & namespace. But if you have some other echo server (e.g. ws://echo.websocket.org) you just pass the URL as param.

You start it by DO ##CLASS(WS.Client).Try() or DO ##CLASS(WS.Client).Try(server_url)

Category
Technology Example
Works with
InterSystems IRIS
Tags
Info
Version
1.0.0
Last updated
2020-04-05
Repository
Open
Documentation
Open
License
Link