Skip to content

Commit ceee847

Browse files
committed
some fixes
1 parent a24f801 commit ceee847

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
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

src/test/java/info/unterrainer/websocketclient/WebSocketClientTest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)