Consume data from websocket
I want to consume external websocket api, URL looks like this:
Checked with external tool (Simple WebSocket Client) that websocket works and I can consume the data.
In Cache the relevant functionality is offered by %IO.Socket class.
set sock = ##class(%IO.Socket).%New() set sock.SSLConfig = "MyEmptySSLConfig" set sock.TranslationTable="UTF8" do sock.Open("site.com/ws/v2/?&token=<token>","443", 10,.sc)
However I get this error:
ERROR #7109: Timed out after 10 seconds trying to open stream '|TCP|443|42881' [zOpen+41^%IO.Socket.1:IOT]
Any ideas on how Cache can consume websocket API are appreciated.