RTC Forums
November 24, 2024, 04:40:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Size of TRtcFunction's request  (Read 4992 times)
YuraZ
Newbie
*
Posts: 39


« on: February 28, 2013, 01:50:20 PM »

Hello,

I found this link http://www.codeproject.com/Articles/209041/HTML5-Web-Socket-in-Essence.
In author opinion size of HTTP-request is 871 Byte. Is this right or not?
And what about size of http-request sended from TRtcFunction with one parameter, named as 'param' with value 'test'?

Thanks a lot.
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: February 28, 2013, 02:22:55 PM »

The size of the request only depends on the content you are sending. There are no headers appended by the RTC SDK except for those absolute minimum required by HTTP. This keeps all requests and responses generated by the RTC SDK as small as possible.

Best Regards,
Danijel Tkalcec
Logged
YuraZ
Newbie
*
Posts: 39


« Reply #2 on: February 28, 2013, 04:09:39 PM »

Thanks, Danijel,
But what minimum size of RTC headers?
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #3 on: February 28, 2013, 04:55:47 PM »

The absolute minimum required by HTTP is also required for all RTC SDK communication.

This is an example HTTP Request (cca 50 bytes):
GET /filename HTTP/1.1
Content-Length: x
your-content-comes-here

And this is an example HTTP Response header (cca 50 bytes):
HTTP/1.1 200 OK
Content-Length: x
your-content-comes-here

The total size of each of your requests and responses will depend on what you are sending. JSON and RTC formats are very compact and the RTC format also supports automatic compression, which additionally reduces your content size.

Best Regards,
Danijel Tkalcec
Logged
YuraZ
Newbie
*
Posts: 39


« Reply #4 on: February 28, 2013, 05:13:05 PM »

Thanks, Danijel,
Is what i need.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 16 queries.