Annotation Type ClientWebSocket
-
@Documented @Retention(RUNTIME) @Target({TYPE,ANNOTATION_TYPE}) @WebSocketComponent @Introduction(interfaces=WebSocketSessionAware.class) @Type(ClientWebSocketInterceptor.class) @DefaultScope(io.micronaut.context.annotation.Prototype.class) public @interface ClientWebSocketAnnotation declared on the client to indicate the class handles web socket frames.- Since:
- 1.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Stringsubprotocoljava.lang.Stringurijava.lang.StringvalueWebSocketVersionversion
-
-
-
Element Detail
-
value
@AliasFor(member="uri") @AliasFor(annotation=WebSocketComponent.class,member="value") @AliasFor(annotation=WebSocketComponent.class,member="uri") java.lang.String value
- Returns:
- The URI of the action
- Default:
- "/ws"
-
-
-
uri
@AliasFor(member="value") @AliasFor(annotation=WebSocketComponent.class,member="value") @AliasFor(annotation=WebSocketComponent.class,member="uri") java.lang.String uri
- Returns:
- The URI of the action
- Default:
- "/ws"
-
-
-
version
@AliasFor(annotation=WebSocketComponent.class, member="version") WebSocketVersion version
- Returns:
- The WebSocket version to use to connect
- Default:
- io.micronaut.websocket.WebSocketVersion.V13
-
-