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)