Persisting ClientID between sessions when using TROSuperTCPChannel

Hi,

I’d like to persist the ClientID between sessions when using the TROSuperTCPChannel.

I found this in the Wiki for the Super Channels:

“In most normal scenarios, this ClientID will automatically be synced with the ClientID stored in the Message you are using. However, if you are manually modifying or setting ClientIDs in your application (e.g. because you persist the ClientID between restarts of your application), it is recommended that you manually initialize both the ID on the message and on the Super Channel.”

I understand that I can use TROMessage.OnInitializeMessage to set the ClientID for the message, but how should I initialize the ID on the Super Channel as described in the documentation?

something like

  ROChannel.ClientId := myguid;
  // your request to server

note: you don’t need to use

because Message.ClientID will be set to ROChannel.ClientId automatically.