Skip to content

Commit 18150e4

Browse files
committed
Fix WebSocketListener javadoc
1 parent b68fa4b commit 18150e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: client/src/main/java/org/asynchttpclient/ws/WebSocketListener.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface WebSocketListener {
2525
void onOpen(WebSocket websocket);
2626

2727
/**
28-
* Invoked when the {@link WebSocket} is close.
28+
* Invoked when the {@link WebSocket} is closed.
2929
*
3030
* @see "http://tools.ietf.org/html/rfc6455#section-5.5.1"
3131
*
@@ -36,14 +36,14 @@ public interface WebSocketListener {
3636
void onClose(WebSocket websocket, int code, String reason);
3737

3838
/**
39-
* Invoked when the {@link WebSocket} is open.
39+
* Invoked when the {@link WebSocket} crashes.
4040
*
4141
* @param t a {@link Throwable}
4242
*/
4343
void onError(Throwable t);
4444

4545
/**
46-
* Invoked when bytes are available.
46+
* Invoked when a binary frame is received.
4747
*
4848
* @param payload a byte array
4949
* @param finalFragment true if this frame is the final fragment
@@ -53,7 +53,7 @@ default void onBinaryFrame(byte[] payload, boolean finalFragment, int rsv) {
5353
};
5454

5555
/**
56-
* Invoked when WebSocket text message are received.
56+
* Invoked when a text frame is received.
5757
*
5858
* @param payload a UTF-8 {@link String} message
5959
* @param finalFragment true if this frame is the final fragment
@@ -63,15 +63,15 @@ default void onTextFrame(String payload, boolean finalFragment, int rsv) {
6363
};
6464

6565
/**
66-
* Invoked when a ping message is received
66+
* Invoked when a ping frame is received
6767
*
6868
* @param payload a byte array
6969
*/
7070
default void onPingFrame(byte[] payload) {
7171
};
7272

7373
/**
74-
* Invoked when a pong message is received
74+
* Invoked when a pong frame is received
7575
*
7676
* @param payload a byte array
7777
*/

0 commit comments

Comments
 (0)