Skip to content

Commit 15c30d1

Browse files
committed
Update readme
1 parent 18dd997 commit 15c30d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class HelloSockController {
5050

5151
// ...
5252

53-
mStompClient = Stomp.over(WebSocketClient.class, "ws://localhost:8080/app/hello/websocket");
53+
mStompClient = Stomp.over(WebSocket.class, "ws://localhost:8080/app/hello/websocket");
5454
mStompClient.connect();
5555

5656
mStompClient.topic("/topic/greetings").subscribe(topicMessage -> {
@@ -68,7 +68,7 @@ class HelloSockController {
6868
Method `Stomp.over` consume class for create connection as first parameter.
6969
You must provide dependency for lib and pass class.
7070
At now supported connection providers:
71-
- WebSocketClient.class ('org.java-websocket:Java-WebSocket:1.3.0')
71+
- WebSocket.class ('org.java-websocket:Java-WebSocket:1.3.0')
7272

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

0 commit comments

Comments
 (0)