Skip to content

Commit fec8f16

Browse files
flolomFrancois Lolom a558367
authored andcommitted
Update README with OkHttp connection provider
1 parent 09f8b4b commit fec8f16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Check out the full example server https://github.com/NaikSoftware/stomp-protocol
6565

6666
**Basic usage**
6767
``` java
68+
import org.java_websocket.WebSocket;
69+
6870
private StompClient mStompClient;
6971

7072
// ...
@@ -89,7 +91,8 @@ See the full example https://github.com/NaikSoftware/StompProtocolAndroid/tree/m
8991
Method `Stomp.over` consume class for create connection as first parameter.
9092
You must provide dependency for lib and pass class.
9193
At now supported connection providers:
92-
- WebSocket.class ('org.java-websocket:Java-WebSocket:1.3.0')
94+
- `org.java_websocket.WebSocket.class` ('org.java-websocket:Java-WebSocket:1.3.0')
95+
- `okhttp3.WebSocket.class` ('com.squareup.okhttp3:okhttp:3.8.0')
9396

9497
You can add own connection provider. Just implement interface `ConnectionProvider`.
9598
If you implement new provider, please create pull request :)

0 commit comments

Comments
 (0)