-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5f63a2
commit b2cb341
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
```java | ||
Client client1 = Client.builder() | ||
.auth(auth1) | ||
.routeUrl(routeUrl) | ||
.build(); | ||
|
||
ClientState.State state = client1.getState(); | ||
Awaitility.await().atMost(10, TimeUnit.SECONDS) | ||
.untilAsserted(() -> Assertions.assertEquals(ClientState.State.Ready, state)); | ||
Optional<CIMServerResVO> serverInfo = client1.getServerInfo(); | ||
Assertions.assertTrue(serverInfo.isPresent()); | ||
|
||
// send msg | ||
String msg = "hello"; | ||
client1.sendGroup(msg); | ||
|
||
// get oline user | ||
Set<CIMUserInfo> onlineUser = client1.getOnlineUser(); | ||
``` |