Package io.fria.lilo.subscription
Interface WebSocketSessionWrapper
-
public interface WebSocketSessionWrapperWebSocketSessionWrapper encapsulates the basic session operations for making communication framework-agnostic.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the websocket sessionStringgetId()Returns session specific identifierbooleanisOpen()indicates that session is open or notvoidsend(@NotNull String message)Sends a string message
-
-
-
Method Detail
-
close
void close()
Closes the websocket session
-
getId
String getId()
Returns session specific identifier- Returns:
- unique session id
-
isOpen
boolean isOpen()
indicates that session is open or not- Returns:
- true for open session, false for closed session
-
send
void send(@NotNull @NotNull String message)Sends a string message- Parameters:
message- websocket string message
-
-