codelv / enaml-native

Build native mobile apps in python with enaml
https://codelv.com/projects/enaml-native/
MIT License
259 stars 21 forks source link

Switch AsyncHttpClient to OkHttp and add native WSS support #52

Closed frmdstryr closed 6 years ago

frmdstryr commented 6 years ago

While it's easy to use twisted or tornado for non SSL features, most apps will need SSL. To avoid having to compile, link, and include SSL libs (which increases the app size by 5MB at a minimum in my testing) an AsyncHttpClient for doing https requests using Loopj is currently implemented.

Loopj does not support websockets and it doesn't look like they will. OkHttp does, so I think that's enough of a reason to switch.

frmdstryr commented 6 years ago

OkHttp works now. WSS can be added later. It's also possible to use Openssl with crystax now.