New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scarlet in Java/Android #12
Comments
28 days and no response. I will just close this and thank you all for your help. |
Kotlin is one hundred percent interoperable with Java ,so you use Scarlet in your Java Project is totally fine. |
I understand that. But, I could not find a way to provide a
|
In build.gradle(Module:app), add these lines of code to support Kotlin in your Java project |
Awesome. Thank you very much! |
Hey, @subzero10 have you implemented scarlet in your application ?? |
Try this
And then setup the interface like so
And observe like this
And send message like this
|
thanks, @slott for this easy implementation. |
I have it up and running with header authentication as well if that is something you need. It seems server errors aren't really relayed so you need to add breakpoints inside the lib to figure out whats going on. |
Thank you for the example. EDIT: nvm, I did it using this code
Where observeEvent() returns Flowable<WebSocket.Event> |
Hi, I'm having trouble integrating Scarlet into my Android app written in Java. Can you provide an example please (maybe put it in the Readme section along with the Kotlin example)?
The text was updated successfully, but these errors were encountered: