File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
src/test/java/info/unterrainer/websocketclient Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<modelVersion >4.0.0</modelVersion >
12
12
<artifactId >websocket-client</artifactId >
13
- <version >1.0.5 </version >
13
+ <version >1.0.6 </version >
14
14
<name >WebsocketClient</name >
15
15
<packaging >jar</packaging >
16
16
Original file line number Diff line number Diff line change @@ -37,4 +37,23 @@ public void connectOauthWss() throws InterruptedException {
37
37
Thread .sleep (500 );
38
38
}
39
39
}
40
+
41
+ @ Test
42
+ public void connectOauthWssExternal () throws InterruptedException {
43
+ try (WebsocketConnection client = WebsocketConnection .builder ()
44
+ .host ("wss://cms-llm.lan.elite-zettl.at/llm" )
45
+ .onMessageHandler (message -> System .out .println ("Received message: " + message ))
46
+ .keycloakHost ("https://keycloak.lan.elite-zettl.at" )
47
+ .keycloakClient ("Cms" )
48
+ .
keycloakUser (
"[email protected] " )
49
+ .keycloakPassword ("test" )
50
+ .build ()) {
51
+ client .establish ();
52
+
53
+ client .send ("Hello WebSocket!" );
54
+ client .send ("another hello" );
55
+
56
+ Thread .sleep (500 );
57
+ }
58
+ }
40
59
}
You can’t perform that action at this time.
0 commit comments