public interface ManagedSession extends Session
Session.State| Modifier and Type | Method and Description |
|---|---|
void |
acceptHeartbeat()
Reschedule heartbeats for this client.
|
void |
acceptPacket(io.netty.channel.Channel channel,
Packet packet)
Send acknowledgment (e.g.
|
boolean |
connect(io.netty.channel.Channel channel)
Connects current session to given channel.
|
void |
disconnect(io.netty.channel.Channel channel)
Disconnect this session.
|
void |
markAsUpgraded()
Marks session as upgraded when session is going to be
upgraded to another transport type.
|
void |
sendHeartbeat()
Send heartbeat packet to client.
|
void |
sendPacket(Packet messagePacket)
Send packet message to client.
|
disconnect, getLocalPort, getOrigin, getRemoteAddress, getSessionId, getState, getTransportType, getUpgradedFromTransportType, isUpgradedSession, sendboolean connect(io.netty.channel.Channel channel)
channel - channel to which client connectedvoid disconnect(io.netty.channel.Channel channel)
channel - the channel to use for disconnectionvoid sendHeartbeat()
void sendPacket(Packet messagePacket)
messagePacket - message to be sent to clientvoid acceptPacket(io.netty.channel.Channel channel,
Packet packet)
channel - channel to which client connectedvoid acceptHeartbeat()
void markAsUpgraded()
Copyright © 2012–2016. All rights reserved.