Hello,
1. The TsgcWebSocketClient has the WatchDog property that allows to reconnect automatically if detects a disconnection.
https://www.esegece.com/help/sgcWebSockets/#t=Topics%2FFeatures%2FWatchDog.htm
https://www.esegece.com/help/sgcWebSockets/#t=Components%2FTsgcWebSocketClient%2FConnection%2FClient_Keep_Connection_Open.htm
2. No, the SignalR client just sends the JSON message though the websocket protocol, there is no transformation, so if the JSON message is correct it's ok.
3. The subscription message depends of the SignalR server. SignalR makes use of the following message format:
{"H":"chathub","M":"Send","A":["Delphi Client","Test message"],"I":0}
Where every node means the following:
I – invocation identifier – allows to match up responses with requests
H – the name of the hub
M – the name of the method
A – arguments (an array, can be empty if the method does not have any parameters)
Most probably, to subscribe, you must send a method with the name of subscription and the arguments if needed.
Kind Regards,
Sergio