Hi CiccioCB, many thanks for the preview of 1.41 beta 1 to evaluate the websockets feature.
The command does connect and receive data via the websocket but with a couple of issues:
Running the code below initiates the websocket with the log as shown and it will then receive messages from the server.
Stopping the program and running again returns the response 'disconnected', so a 2nd run appears to toggle the connection (although I may be misinterpreting this).
If no data is received for a period of time (appears to be four or five minutes but hard to pin down more precisely) it will receive no further data.
If I stop and re-run the program I receive the 'disconnected' message, so it appears that the connection has hung rather than closed.
Sometimes the feed will receive a few messages but then no more, even when well within the timeout I mentioned above.
Stopping and re-running the program gives the 'disconnected' response.
I don't know how far you want to take the websockets implementation in Annex but I would suggest an explicit 'close websocket' command and a way to determine the status of a websocket (open or closed) would be useful.
This is the code I've been using: