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);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Datasnap.DSPlatform.pas Datasnap.DSPlatform.hpp |
Datasnap.DSPlatform | TDBXServerComponent |
Description
Recensement des callbacks de haute densité pour des clients lourds.
ConnectClientChannel peut être appelée par un client utilisant une connexion directe, contrairement à l'utilisation d'une connexion REST. Cela permet le recensement de :
- Un callback avec le serveur, à invoquer quand les messages sont diffusés au canal de serveur correspondant au
ChannelName
.
- La notification donnée qui correspond aux valeurs de
ChannelNam
,ChannelId
etCallbackId
.