Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WebSocket for Android ver.2

WebSocket for Android ver.2

Yuichi Maekawa

September 16, 2016

Transcript

20 slides
  1. But

  2. For normal mobile app • Almost all services have no

    proxy • Need real time update!(messaging app or game) • Need low energy consumption! > If you make long polling system, the user say  “Battery fire!” and put 1 star...
  3. Update of okhttp-ws • Add to main repos on v3.5.0!!(SNAPSHOT

    now)  PR: #2852    https://github.com/square/okhttp/pull/2852 compile 'com.squareup.okhttp3:okhttp-ws:3.4.1' compile 'com.squareup.okhttp3:okhttp:3.5.0'
  4. Update of okhttp-ws • Remove ws package • Add method

    to OkHttpClient okhttp3.ws.* -> okhttp3.* newWebSocketCall
  5. Retrofit? -> No change. It will be added in v2.2!!!

    (No due date. 31% complete at 2016-09-16.) • Issue #924 • Commit interface Service { @GET("/chat/{id}") Call<WebSocket> chat(@Path("id") String id); }

More Decks by Yuichi Maekawa

Other Decks in Programming