3838import org .java_websocket .handshake .ServerHandshakeBuilder ;
3939
4040/**
41- * Implemented by <tt >WebSocketClient</tt > and <tt >WebSocketServer</tt >. The methods within are
42- * called by <tt >WebSocket</tt >. Almost every method takes a first parameter conn which represents
41+ * Implemented by <code >WebSocketClient</code > and <code >WebSocketServer</code >. The methods within are
42+ * called by <code >WebSocket</code >. Almost every method takes a first parameter conn which represents
4343 * the source of the respective event.
4444 */
4545public interface WebSocketListener {
@@ -86,15 +86,15 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
8686 /**
8787 * Called when an entire text frame has been received. Do whatever you want here...
8888 *
89- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
89+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
9090 * @param message The UTF-8 decoded message that was received.
9191 */
9292 void onWebsocketMessage (WebSocket conn , String message );
9393
9494 /**
9595 * Called when an entire binary frame has been received. Do whatever you want here...
9696 *
97- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
97+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
9898 * @param blob The binary message that was received.
9999 */
100100 void onWebsocketMessage (WebSocket conn , ByteBuffer blob );
@@ -103,16 +103,16 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
103103 * Called after <var>onHandshakeReceived</var> returns <var>true</var>. Indicates that a complete
104104 * WebSocket connection has been established, and we are ready to send/receive data.
105105 *
106- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
106+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
107107 * @param d The handshake of the websocket instance
108108 */
109109 void onWebsocketOpen (WebSocket conn , Handshakedata d );
110110
111111 /**
112- * Called after <tt >WebSocket#close</tt > is explicity called, or when the other end of the
112+ * Called after <code >WebSocket#close</code > is explicity called, or when the other end of the
113113 * WebSocket connection is closed.
114114 *
115- * @param ws The <tt >WebSocket</tt > instance this event is occurring on.
115+ * @param ws The <code >WebSocket</code > instance this event is occurring on.
116116 * @param code The codes can be looked up here: {@link CloseFrame}
117117 * @param reason Additional information string
118118 * @param remote Returns whether or not the closing of the connection was initiated by the remote
@@ -123,7 +123,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
123123 /**
124124 * Called as soon as no further frames are accepted
125125 *
126- * @param ws The <tt >WebSocket</tt > instance this event is occurring on.
126+ * @param ws The <code >WebSocket</code > instance this event is occurring on.
127127 * @param code The codes can be looked up here: {@link CloseFrame}
128128 * @param reason Additional information string
129129 * @param remote Returns whether or not the closing of the connection was initiated by the remote
@@ -134,7 +134,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
134134 /**
135135 * send when this peer sends a close handshake
136136 *
137- * @param ws The <tt >WebSocket</tt > instance this event is occurring on.
137+ * @param ws The <code >WebSocket</code > instance this event is occurring on.
138138 * @param code The codes can be looked up here: {@link CloseFrame}
139139 * @param reason Additional information string
140140 */
@@ -144,7 +144,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
144144 * Called if an exception worth noting occurred. If an error causes the connection to fail onClose
145145 * will be called additionally afterwards.
146146 *
147- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
147+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
148148 * @param ex The exception that occurred. <br> Might be null if the exception is not related to
149149 * any specific connection. For example if the server port could not be bound.
150150 */
@@ -153,7 +153,7 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
153153 /**
154154 * Called a ping frame has been received. This method must send a corresponding pong by itself.
155155 *
156- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
156+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
157157 * @param f The ping frame. Control frames may contain payload.
158158 */
159159 void onWebsocketPing (WebSocket conn , Framedata f );
@@ -162,15 +162,15 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
162162 * Called just before a ping frame is sent, in order to allow users to customize their ping frame
163163 * data.
164164 *
165- * @param conn The <tt >WebSocket</tt > connection from which the ping frame will be sent.
165+ * @param conn The <code >WebSocket</code > connection from which the ping frame will be sent.
166166 * @return PingFrame to be sent.
167167 */
168168 PingFrame onPreparePing (WebSocket conn );
169169
170170 /**
171171 * Called when a pong frame is received.
172172 *
173- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
173+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
174174 * @param f The pong frame. Control frames may contain payload.
175175 **/
176176 void onWebsocketPong (WebSocket conn , Framedata f );
@@ -179,19 +179,19 @@ void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
179179 * This method is used to inform the selector thread that there is data queued to be written to
180180 * the socket.
181181 *
182- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
182+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
183183 */
184184 void onWriteDemand (WebSocket conn );
185185
186186 /**
187- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
187+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
188188 * @return Returns the address of the endpoint this socket is bound to.
189189 * @see WebSocket#getLocalSocketAddress()
190190 */
191191 InetSocketAddress getLocalSocketAddress (WebSocket conn );
192192
193193 /**
194- * @param conn The <tt >WebSocket</tt > instance this event is occurring on.
194+ * @param conn The <code >WebSocket</code > instance this event is occurring on.
195195 * @return Returns the address of the endpoint this socket is connected to, or{@code null} if it
196196 * is unconnected.
197197 * @see WebSocket#getRemoteSocketAddress()
0 commit comments