Datasnap.DSPlatform.TDBXServerComponent.ConnectClientChannel
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Datasnap.DSPlatform.pas Datasnap.DSPlatform.hpp
| |
Unit: Datasnap.DSPlatform | |
Parent: TDBXServerComponent |
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);
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
.