RTC Forums

Subscription => Support => Topic started by: YuraZ on February 28, 2013, 01:50:20 PM



Title: Size of TRtcFunction's request
Post by: YuraZ 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.


Title: Re: Size of TRtcFunction's request
Post by: D.Tkalcec (RTC) 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


Title: Re: Size of TRtcFunction's request
Post by: YuraZ on February 28, 2013, 04:09:39 PM
Thanks, Danijel,
But what minimum size of RTC headers?


Title: Re: Size of TRtcFunction's request
Post by: D.Tkalcec (RTC) 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


Title: Re: Size of TRtcFunction's request
Post by: YuraZ on February 28, 2013, 05:13:05 PM
Thanks, Danijel,
Is what i need.