Hello,
I have to connect to a WebSocket API (never even knew that excisted) which has an endpoint.
wss://<IP>/api/v2/data/main/metrics
Then I can send
{
"Reference": "Get_reference",
"Command": {
"Get": {
"Select": "Identifier",
"Filter": "parameter"
}
}
}
And I should get a JSON back
{
"Reference": "Get_reference",
"Data": [
{
// ... and so on
}
}
I tried with WebSocketReceiver to connect to the API, I got the handshake and it keeps running.
Then I created a workspace with a WebSocketSender to send the JSON but it only sends and I get no output.
Is this even possible or should I use a PythonCaller?
TIA
Edit: I'm testing this in FME Workbench - is this someting the FME server should do? I found this: http://docs.safe.com/fme/2018.1/html/FME_Server_Documentation/Content/ReferenceManual/WebSocket-Server.htm