Open fram03 opened 9 years ago
Nice idea! Added to milestone
@alexanderdean
This is already possible. It is however undocumented in the wiki,
Emitter signature is
Emitter(uri:String, httpMethod:String = URLRequestMethod.GET, protocol:String = "http")
We can chose to provide a forceSecureTracker
on the Emitter and make it public or expose it through the tracker.
Thanks for diving into this @nakulgan -
protocol:String
force the protocol used to connect?A simple interpretation of that argument would suggest that there is only currently forcing, and there is no auto-detection of host page protocol available currently - but no idea if that's actually true...
That is correct, protocol auto-detection is not supported.
It makes more sense to add auto-detection
feature along with forcing.
Thanks @nakulgan - my recommendation is that we:
protocol:String
from a string to an enum of HTTP
, HTTPS
, AUTO
, with AUTO
the default optionforceSecureTracker
and forceInsecureTracker
methods because they add extra API surface area / usage complexity (you have to remember to call an additional method)This diverges the AS Tracker from the JS Tracker, but it's closer to the mobile trackers and it's simpler to explain to people.
Thoughts @yalisassoon @jbeemster ?
All sounds good to me!
Sounds good. Thanks @alexanderdean @jbeemster
Renamed title, please update the commit...
With Emitter constructor we can choose HTTP method to use, but what about forcing https? Js library offers "forceSecureTracker" configuration field. Is there something for as3 library?