This commit is contained in:
@@ -129,6 +129,7 @@ public interface WebSocketDesc {
|
|||||||
default void onConnected() {
|
default void onConnected() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//接收文本消息响应事件,可能会接收到文本消息需要重写该方法
|
||||||
default void onMessage(String text) {
|
default void onMessage(String text) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,6 +139,7 @@ public interface WebSocketDesc {
|
|||||||
default void onPong(byte[] bytes) {
|
default void onPong(byte[] bytes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//接收二进制消息响应事件,可能会接收到二进制消息需要重写该方法
|
||||||
default void onMessage(byte[] bytes) {
|
default void onMessage(byte[] bytes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user