public interface ConnectionListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onClose(int closeCode,
String reason)
Invoked after the connection was closed.
|
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 onMessage(String message)
message - the text message.void onMessage(ByteBuffer message)
message - the binary message.Copyright © 2019. All rights reserved.