public class WebSocketServerHandler extends AbstractWebSocketHandler
Modifier and Type | Method and Description |
---|---|
void |
event(SessionEvent event)
Called to notify about a change of the associated session state.
|
IWebSocketSessionConfig |
getConfig()
Returns the Web Socket configuration object that will be used to configure
the behavior of the associated session.
|
void |
read(Object msg)
Called when a new message was read and decoded from the input buffer.
|
available, available, getSession, setSession
event, exception, getFactory, getName, incident, read, read, timer, timer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSession, setSession
event, exception, getFactory, getName, incident, read, read, timer, timer
available, available, read, read
public void read(Object msg)
IHandler
byte[]
and ByteBuffer
.msg
- the message that was read and decoded from the input buffer.public void event(SessionEvent event)
IHandler
event
in interface IHandler
event
in class AbstractHandler
event
- an event related with the change of the session stateSessionEvent
public IWebSocketSessionConfig getConfig()
AbstractWebSocketHandler
getConfig
in interface IHandler
getConfig
in interface IWebSocketHandler
getConfig
in class AbstractWebSocketHandler
ISessionConfig
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.