Skip to content

Commit aeb3faa

Browse files
committed
5.0.6
1 parent 9ed51cc commit aeb3faa

54 files changed

Lines changed: 181 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
5.0.6
2+
- fixed WsConnection.setHandler();
3+
- fixed WsServer.isActive(), stopServer;
4+
- fixed docs
15
5.0.5
26
- WsStatus some definitions of status codes removed;
3-
- WsConnection connection handler crash with status code 1006 (ABNORMAL_CLOSURE);
7+
- WsConnection handler crash with status code 1006 (ABNORMAL_CLOSURE);
48
- WsListener connection timeout with status code 1001 (GOING_AWAY)
59
5.0.4
610
- fixed WsStatus;

README.txt

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Java SE/Android WebSocket client and server package, MIT (c) 2020-2025 miktim@mail.ru
1+
Java SE/Android WebSocket client and server package, MIT (c) 2020-2026 miktim@mail.ru
22

33
Release notes:
44
- RFC 6455 compliant package ( https://datatracker.ietf.org/doc/html/rfc6455/ );
@@ -31,13 +31,13 @@ Overview:
3131
The creator of WebSocket servers and client-side connections.
3232

3333
Constant:
34-
static final String VERSION = "5.0.5";
34+
static final String VERSION = "5.0.6";
3535

3636
Constructors:
3737
WebSocket();
3838
- creates WebSocket instance
3939
WebSocket(InetAddress intfAddr) throws SocketException;
40-
- creates WebSocket instance on interface;
40+
- creates WebSocket instance on specified interface;
4141
- throws WsError when interface does not exists
4242

4343

@@ -66,9 +66,8 @@ Overview:
6666
wsp: the server-side connections creation and execution parameters;
6767
- throws WsError on IOException, GeneralSecurityException, NullPointerException
6868

69-
7069
WsServer startServer(int port, WsConnection.Handler handler)
71-
- creates and starts insecure connections server;
70+
- creates and starts insecure connections server with default parameters;
7271
- see above.
7372

7473
WsServer startSecureServer(int port, WsConnection.Handler handler, WsParameters wsp)
@@ -80,7 +79,7 @@ Overview:
8079
- see above.
8180

8281
NOTE:
83-
if you need to handle server events, use WsServer.Handler wich extends
82+
if you need to handle server events, use WsServer.Handler wich inherits
8483
WsConnection.Handler (see below).
8584

8685
WsConnection connect(String uri, WsConnection.Handler handler, WsParameters wsp);
@@ -166,6 +165,7 @@ Overview:
166165

167166
void close();
168167
- closes connection with status code 1000 (NORMAL_CLOSURE)
168+
and empty reason
169169
void close(String reason);
170170
- closes connection with status code 1000 (NORMAL_CLOSURE)
171171
and specified reason
@@ -177,12 +177,14 @@ Overview:
177177
- a reason that is longer than 123 BYTES is truncated;
178178
- the method blocks outgoing messages (sending methods throw IOException);
179179
- isOpen() returns false;
180-
- incoming messages are available until the closing handshake completed.
180+
- incoming messages are available until the closing handshake completed
181+
or closing timeout expires.
181182

182183
void setHandler(WsConnection.Handler newHandler);
183184
- sets the secondary connection handler;
184185
- calls onClose in the old handler (conn.isOpen() returns true),
185-
then calls onOpen in the new handler.
186+
then calls onOpen in the new handler;
187+
- throws NullPointerException, IllegalStateException
186188
boolean isPrimaryHandler();
187189
- returns true if it is so
188190

@@ -211,7 +213,7 @@ Overview:
211213
String getQuery();
212214
- returns http request query or null
213215
WsParameters getParameters();
214-
- returns connection parameters
216+
- returns the clone of the connection parameters
215217

216218

217219
Interface WsConnection.Handler
@@ -248,10 +250,10 @@ Overview:
248250
- returns true if WebSocket message is UTF-8 encoded text
249251
String asString();
250252
- reads this stream as String;
251-
- throws WsError on Exception.
253+
- throws WsError on any Exception.
252254
byte[] asByteArray();
253255
- reads this stream as byte array;
254-
- throws WsError on Exception.
256+
- throws WsError on any Exception.
255257
void close();
256258
- closes this stream. Further reading causes an IOException.
257259

dist/websocket-5.0.5.jar

-33.2 KB
Binary file not shown.

docs/allclasses-frame.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>All Classes (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<script type="text/javascript" src="script.js"></script>
1111
</head>

docs/allclasses-noframe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>All Classes (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<script type="text/javascript" src="script.js"></script>
1111
</head>

docs/constant-values.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>Constant Field Values (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<script type="text/javascript" src="script.js"></script>
1111
</head>
@@ -95,7 +95,7 @@ <h2 title="org.miktim">org.miktim.*</h2>
9595
<!-- -->
9696
</a><code>public&nbsp;static&nbsp;final&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
9797
<td><code><a href="org/miktim/websocket/WebSocket.html#VERSION">VERSION</a></code></td>
98-
<td class="colLast"><code>"5.0.5"</code></td>
98+
<td class="colLast"><code>"5.0.6"</code></td>
9999
</tr>
100100
</tbody>
101101
</table>

docs/deprecated-list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>Deprecated List (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<script type="text/javascript" src="script.js"></script>
1111
</head>

docs/help-doc.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>API Help (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
1010
<script type="text/javascript" src="script.js"></script>
1111
</head>

docs/index-files/index-1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>A-Index (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
1010
<script type="text/javascript" src="../script.js"></script>
1111
</head>

docs/index-files/index-10.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<!-- NewPage -->
33
<html lang="ru">
44
<head>
5-
<!-- Generated by javadoc (1.8.0_482) on Thu Mar 05 07:47:40 MSK 2026 -->
5+
<!-- Generated by javadoc (1.8.0_482) on Fri Mar 13 07:22:58 MSK 2026 -->
66
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
77
<title>P-Index (org.miktim.websocket)</title>
8-
<meta name="date" content="2026-03-05">
8+
<meta name="date" content="2026-03-13">
99
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
1010
<script type="text/javascript" src="../script.js"></script>
1111
</head>

0 commit comments

Comments
 (0)