Skip to content

Commit 1b03e3a

Browse files
committedOct 12, 2024
update readme
1 parent b0386e2 commit 1b03e3a

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed
 

‎cim-client-sdk/README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11

22
```java
3-
var auth1 = ClientConfigurationData.Auth.builder()
4-
.userId(id)
5-
.userName(cj)
6-
.build();
7-
8-
Client client1 = Client.builder()
9-
.auth(auth1)
10-
.routeUrl(routeUrl)
11-
.build();
12-
13-
ClientState.State state = client1.getState();
14-
Awaitility.await().atMost(10, TimeUnit.SECONDS)
15-
.untilAsserted(() -> Assertions.assertEquals(ClientState.State.Ready, state));
16-
Optional<CIMServerResVO> serverInfo = client1.getServerInfo();
17-
Assertions.assertTrue(serverInfo.isPresent());
18-
19-
// send msg
20-
String msg = "hello";
21-
client1.sendGroup(msg);
22-
23-
// get oline user
24-
Set<CIMUserInfo> onlineUser = client1.getOnlineUser();
3+
var auth1 = ClientConfigurationData.Auth.builder()
4+
.userId(id)
5+
.userName(cj)
6+
.build();
7+
8+
Client client1 = Client.builder()
9+
.auth(auth1)
10+
.routeUrl(routeUrl)
11+
.build();
12+
13+
ClientState.State state = client1.getState();
14+
Awaitility.await().atMost(10, TimeUnit.SECONDS)
15+
.untilAsserted(() -> Assertions.assertEquals(ClientState.State.Ready, state));
16+
Optional<CIMServerResVO> serverInfo = client1.getServerInfo();
17+
Assertions.assertTrue(serverInfo.isPresent());
18+
19+
// send msg
20+
String msg = "hello";
21+
client1.sendGroup(msg);
22+
23+
// get oline user
24+
Set<CIMUserInfo> onlineUser = client1.getOnlineUser();
2525
```

0 commit comments

Comments
 (0)
Failed to load comments.