Datasnap.DSPlatform.TDBXServerComponent.ConnectClientChannel
Delphi
function ConnectClientChannel(const ChannelName: string; const ChannelId: string; const CallbackId, ChannelNames, SecurityToken: string; ChannelCallback: TDBXCallback): Boolean;
C++
bool __fastcall ConnectClientChannel(const System::UnicodeString ChannelName, const System::UnicodeString ChannelId, const System::UnicodeString CallbackId, const System::UnicodeString ChannelNames, const System::UnicodeString SecurityToken, Data::Dbxjson::TDBXCallback* ChannelCallback);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSPlatform.pas Datasnap.DSPlatform.hpp |
Datasnap.DSPlatform | TDBXServerComponent |
Description
Heavyweight callback registration for thick clients.
ConnectClientChannel can be called by a client using a direct connection, as opposed to using a REST connection. This allows for registering:
- A callback with the server, to be invoked when messages are broadcasted to the server channel matching the given
ChannelName
. - The notification given that matches the values of
ChannelName
,ChannelId
, andCallbackId
.