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()
void
close()
created()
io.javalin.websocket.WsContext
ctx()
group()
abstract void
handleTextFrame
(String text) Handler for text frame.host()
boolean
isMobile()
final boolean
login()
long
nIn()
long
nOut()
void
Send message back to client.void
setAuthInfo
(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:
authInfo
in 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.
-