Package no.polaric.core.httpd
Class WsNotifier.Client
java.lang.Object
no.polaric.core.httpd.WsNotifier.Client
- All Implemented Interfaces:
SesNotifier.Client
- Direct Known Subclasses:
NodeWs.Client,PubSub.Client
- Enclosing class:
WsNotifier
Client
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthInfo()voidclose()created()io.javalin.websocket.WsContextctx()group()abstract voidhandleTextFrame(String text) Handler for text frame.host()booleanisMobile()final booleanlogin()longnIn()longnOut()voidSend message back to client.voidsetAuthInfo(AuthInfo auth) uid()userName()
-
Field Details
-
_ctx
protected io.javalin.websocket.WsContext _ctx -
_ctime
-
_auth
-
_nIn
protected long _nIn -
_nOut
protected long _nOut
-
-
Constructor Details
-
Client
public Client(io.javalin.websocket.WsContext ctx)
-
-
Method Details
-
setAuthInfo
-
authInfo
- Specified by:
authInfoin interfaceSesNotifier.Client
-
login
public final boolean login() -
userName
-
group
-
ctx
public io.javalin.websocket.WsContext ctx() -
host
-
uid
-
created
-
nIn
public long nIn() -
nOut
public long nOut() -
isMobile
public boolean isMobile() -
send
Send message back to client. -
close
public void close() -
handleTextFrame
Handler for text frame. To be defined in subclass.
-