File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed
src/main/java/info/unterrainer Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 30
30
<version >9.4.38.v20210224</version >
31
31
<scope >compile</scope >
32
32
</dependency >
33
- <dependency >
34
- <groupId >org.keycloak</groupId >
35
- <artifactId >keycloak-admin-client</artifactId >
36
- <version >26.0.4</version >
37
- </dependency >
38
- <dependency >
39
- <groupId >info.unterrainer.commons</groupId >
40
- <artifactId >http-server</artifactId >
41
- <version >1.0.0</version >
42
- </dependency >
43
33
<dependency >
44
34
<groupId >info.unterrainer.commons</groupId >
45
35
<artifactId >oauth-token-manager</artifactId >
Original file line number Diff line number Diff line change
1
+ package info .unterrainer .commons .websocketserver ;
2
+
3
+ public class Information {
4
+ public static final String name = "Websocket-Server" ;
5
+ public static final String buildTime = "2025-07-25T13:50:51Z" ;
6
+ public static final String pomVersion = "1.0.0" ;
7
+ }
Original file line number Diff line number Diff line change 3
3
import java .util .HashSet ;
4
4
import java .util .function .Consumer ;
5
5
6
- import org .jetbrains .annotations .NotNull ;
7
-
8
6
import info .unterrainer .oauthtokenmanager .OauthTokenManager ;
9
7
import io .javalin .Javalin ;
10
8
import io .javalin .websocket .WsHandler ;
@@ -45,12 +43,12 @@ public WebsocketServer start(int port) {
45
43
return this ;
46
44
}
47
45
48
- public WebsocketServer ws (@ NotNull String path , @ NotNull Consumer <WsHandler > ws ) {
46
+ public WebsocketServer ws (String path , Consumer <WsHandler > ws ) {
49
47
wss .ws (path , ws , new HashSet <>());
50
48
return this ;
51
49
}
52
50
53
- public WebsocketServer wsOauth (@ NotNull String path , @ NotNull WsOauthHandlerBase handler ) {
51
+ public WebsocketServer wsOauth (String path , WsOauthHandlerBase handler ) {
54
52
if (!isOauthEnabled ) {
55
53
throw new IllegalStateException ("Websocket server is not configured for OAuth2/JWT support." );
56
54
}
You can’t perform that action at this time.
0 commit comments