Class YHocuspocusProperties
java.lang.Object
net.carcdr.yhocuspocus.spring.autoconfigure.YHocuspocusProperties
Configuration properties for YHocuspocus Spring integration.
These properties can be configured in application.yml or application.properties:
yhocuspocus:
path: /collaboration
allowed-origins:
- "http://localhost:3000"
debounce: 2s
max-debounce: 10s
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the allowed origins.Gets the debounce duration.Gets the maximum debounce duration.getPath()Gets the WebSocket endpoint path.voidsetAllowedOrigins(List<String> allowedOrigins) Sets the allowed origins.voidsetDebounce(Duration debounce) Sets the debounce duration.voidsetMaxDebounce(Duration maxDebounce) Sets the maximum debounce duration.voidSets the WebSocket endpoint path.
-
Constructor Details
-
YHocuspocusProperties
public YHocuspocusProperties()
-
-
Method Details
-
getPath
-
setPath
Sets the WebSocket endpoint path.- Parameters:
path- the path (must start with '/')
-
getAllowedOrigins
-
setAllowedOrigins
-
getDebounce
-
setDebounce
Sets the debounce duration.- Parameters:
debounce- debounce duration
-
getMaxDebounce
-
setMaxDebounce
Sets the maximum debounce duration.- Parameters:
maxDebounce- max debounce duration
-