public interface ClientConnection
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive()
Gets if the connection is alive.
|
void |
shutdown(DefaultMessageType messageType,
boolean reconnect)
Shuts down with a message type.
|
void |
shutdown(@Nullable String message,
boolean reconnect)
Shuts down with a message.
|
void |
startPing()
Starts sending pings.
|
boolean isAlive()
void startPing()
void shutdown(DefaultMessageType messageType, boolean reconnect)
messageType
- message typereconnect
- true to indicate desire to reconnectvoid shutdown(@Nullable String message, boolean reconnect)
message
- messagereconnect
- true to indicate desire to reconnectCopyright © 2013–2021 Kitteh. All rights reserved.