Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement a WebSocket with Retrofit + RX

I have a project structure that uses Retrofit with Rx.

I would like to use it to implement also WebSocket communication, any idea how i can accomplish that?

like image 855
Kristiyan Petrov Avatar asked May 16 '16 13:05

Kristiyan Petrov


1 Answers

Retrofit doesn't support web sockets yet. The feature is anticipated to be in the 2.1 release. However, there's a branch that JW has been working on. You can build Retrofit from his branch and try it. Or can wait till the 2.1 release. This is the corresponding issue on Github.

like image 119
Ragunath Jawahar Avatar answered Nov 14 '22 23:11

Ragunath Jawahar