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 1010
1111 <modelVersion >4.0.0</modelVersion >
1212 <artifactId >websocket-client</artifactId >
13- <version >1.0.5 </version >
13+ <version >1.0.6 </version >
1414 <name >WebsocketClient</name >
1515 <packaging >jar</packaging >
1616
Original file line number Diff line number Diff line change @@ -37,4 +37,23 @@ public void connectOauthWss() throws InterruptedException {
3737 Thread .sleep (500 );
3838 }
3939 }
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+ }
4059}
You can’t perform that action at this time.
0 commit comments