Skip to content
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

Add OkHttp as a ConnectionProvider #47

Merged
merged 4 commits into from
Jun 17, 2017

Conversation

flolom
Copy link
Contributor

@flolom flolom commented May 30, 2017

Hello,

I've added a new ConnectionProvider based on https://github.com/square/okhttp, since the WebSocket API of OkHttp is now stable.

The implementation is really close to what you have done on the existing WebSocketsConnectionProvider

Let me know if this works out for you !

* clean imports
* package visibility for all provider implementation (force instantiation
of the connection provider from the Stomp class only)
* Subscriber lists are final
The main motivation is to make possible to the user of the library to pass
its own websocket client: this way, the developer can configure and/or
enable/disable additionnal features of the client (ping to keep the connection alive
with OkHttp, or configure timeouts for example)
@NaikSoftware NaikSoftware merged commit fec8f16 into NaikSoftware:master Jun 17, 2017
@NaikSoftware
Copy link
Owner

Great job! It's worked on my project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants