RTC Forums

Subscription => Support => Topic started by: cochise on December 21, 2013, 03:23:19 PM



Title: TRtcGateway, TRtcHttpGateClient and TRtcGateClientLink
Post by: cochise on December 21, 2013, 03:23:19 PM
Hello , i've been using the OLD RTC SDK version in my Chat messenger using the Functions , that means the Client sends a command via a Function and get a result from the server , and that's working well , but when i get the latest RTC version i see there are 3 new components ( TRtcGateway, TRtcHttpGateClient and TRtcGateClientLink ) , they's re really elastic mainly when i see the demo ( GateChatServer + GateChatClient ) , so my question is :

If i will port my Chat messenger to use these great new components will i still be able to use the functions ?

mainly in registration + Loggin ...etc

yours


Title: Re: TRtcGateway, TRtcHttpGateClient and TRtcGateClientLink
Post by: D.Tkalcec (RTC) on December 21, 2013, 04:56:23 PM
No, you won't be able to use RTC remote functions with TRtcGateway and TRtcGateClient components. At least not the way you are used to with TRtcServerModule and TRtcClientModule components. With a TRtcGateClient component, you can send data packages to other Clients connected to the same Gateway, or use commands for managing Client groups (add/remove users from groups), but there is no concept of sending remote function calls to the Gateway.

For user authentication, you can use the "GateUserAuth" property on the TRtcGateClient component, which is sent to the Gateway on user login and available on every event on the TRtcGateway component. Make sure to keep your code inside Gateway events as short as possible, because all Gateway functions will be blocked until your code completes execution.

Best Regards,
Danijel Tkalcec


Title: Re: TRtcGateway, TRtcHttpGateClient and TRtcGateClientLink
Post by: cochise on December 21, 2013, 05:10:32 PM
Many thanks Danijel  , that means the better for now is to keep using the RTC Functions .
Because the RTC Functions are used to Interchange the Audio ..etc  .

So my question Sir Danijel  , which is best ( As for you at least ) keep using the RTC Functions or porting the whole system to use the TRtcGateClient .
Really when i took a look at these new components i was so inspired .

my system is Chat Messenger ( Text + Audio + Video ) ...etc

really need your advice . 


Title: Re: TRtcGateway, TRtcHttpGateClient and TRtcGateClientLink
Post by: D.Tkalcec (RTC) on December 21, 2013, 05:28:17 PM
If your current system works and meets all your requirements, then I see no reason to change it.

Best Regards,
Danijel Tkalcec


Title: Re: TRtcGateway, TRtcHttpGateClient and TRtcGateClientLink
Post by: cochise on December 21, 2013, 05:36:10 PM
OK So many thanks Sir Danijel .