public interface ConnectionListener
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int closeCode,
String reason)
Invoked after the connection was closed.
|
void |
onError(Throwable throwable)
Invoked after an error.
|
void |
onFail(int status,
String reason)
Invoded after fail
|
void |
onMessage(ByteBuffer message)
Invoked on arrival of a binary message.
|
void |
onMessage(String message)
Invoked on arrival of a text message.
|
void |
onOpen()
Invoked once the connection to the remote URL has been established.
|
void onOpen()
void onClose(int closeCode,
String reason)
closeCode - the RFC 6455 status codereason - a string description for the reason of the closevoid onError(Throwable throwable)
throwable - the causevoid onFail(int status,
String reason)
status - reason - void onMessage(String message)
message - the text message.void onMessage(ByteBuffer message)
message - the binary message.Copyright © 2018. All rights reserved.