Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10835] TiAPI: HTTPClient: new event for continuous data stream

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-09-21T10:05:44.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sBacklog
ComponentsTiAPI
Labelsapi
ReporterMartin Guillon
AssigneeEric Merriman
Created2012-07-31T00:27:55.000+0000
Updated2017-03-21T20:31:42.000+0000

Description

Feature description

HTTPClientProxy should support didReceiveData method.

Customer's original description of the request

I needed to have a comet session using Titanium on iOS. Right now the implementation of TiNetworkHTTPClientProxy doesnt allow this because it doesnt implement didReceiveData of ASIHTTPRequest. Though using didReceiveData would have broken ondatastream and onsendstream. So what i did was create a third one "ondatastream" for live data processing. In the meantime i renamed(for now) ondatastream to ondownloadprogress and onsendstream to onsendprogress. WARNING: on ios using the new "ondatastream" will break responseText and responseData. This is due to the ASIHTTPRequest implementation

Pull request

See https://github.com/appcelerator/titanium_mobile/pull/2844 and related links and discussions.

Comments

  1. Martin Guillon 2012-07-31

    pull request https://github.com/appcelerator/titanium_mobile/pull/2536#issuecomment-7386484
  2. Hans Knöchel 2016-09-21

    Fixed as part of TIMOB-15980
  3. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source