Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
67ff5f8
Replace the type specification in this constructor call with the diam…
marci4 Sep 20, 2020
08be869
Code Quality
marci4 Sep 26, 2020
0f0c9a9
Merge pull request #1072 from marci4/ImproveCodeQuality
marci4 Jan 7, 2021
766d7c1
Update documentation comments for member methods
prashanttholia Jan 18, 2021
32d5656
Merge pull request #1115 from prashanttholia/master
marci4 Jan 20, 2021
b083428
Set compatibility in build.gradle to 1.7
PhilipRoman Feb 3, 2021
25af097
Remove unused code and clean up build.gradle
PhilipRoman Feb 3, 2021
feec867
Use SecureRandom instead of Random
marci4 Mar 22, 2021
d0f5731
Merge pull request #1133 from marci4/Issue1132
marci4 Mar 25, 2021
234a865
Configure Gradle to use utf-8
PhilipRoman Mar 29, 2021
9e5b795
Replace deprecated Gradle 'maven' plugin with 'maven-publish'
PhilipRoman Mar 29, 2021
a25bce4
Switch from deprecated Gradle 'compile' configuration to 'implementat…
PhilipRoman Mar 29, 2021
6e1d80f
Merge pull request #1136 from PhilipRoman/gradle-build-fix
PhilipRoman Mar 30, 2021
2b33f42
Update Changelog.md
marci4 Apr 5, 2021
e630e60
Merge pull request #1137 from marci4/UpdateChangelog1.5.2
marci4 Apr 5, 2021
b088e6d
Release 1.5.2
marci4 Apr 5, 2021
14fa2ad
Merge pull request #1138 from marci4/Release1.5.2
marci4 Apr 5, 2021
9a290e8
Provide SSLSession in WebSocketClient
marci4 Apr 19, 2021
5f8d597
Merge pull request #1143 from marci4/Issue1142
marci4 Apr 21, 2021
ce28e70
PermessageDeflate should handle uncompressed messages
marci4 Jul 25, 2021
392fb1c
Remove trailing whitespace
Icreatedthistodeletemyaccounts Jul 27, 2021
4adb0c5
Merge pull request #1167 from GrpeApple/master
marci4 Jul 27, 2021
a64ee7c
Deactivate sonar for pull requests
marci4 Jul 27, 2021
7a9c5e2
Merge pull request #1168 from marci4/SonarForPushesOnly
marci4 Jul 27, 2021
8e7e112
Merge pull request #1165 from marci4/Issue1164
marci4 Jul 27, 2021
f61aa43
Update README.markdown
marci4 Aug 7, 2021
1eb4303
Merge pull request #1172 from marci4/Issue1171
marci4 Aug 7, 2021
d71467c
Added support unresolved socket addresses
vtsykun Oct 3, 2021
1eb2f13
Merge pull request #1185 from vtsykun/patch-1
marci4 Oct 6, 2021
bbb9e04
update the package version to 1.5.2
artrayme Oct 20, 2021
9843afa
dependency for gradle version 7.0+
artrayme Oct 20, 2021
58736b6
Merge pull request #1188 from artrayme/readme_update
marci4 Oct 20, 2021
ebb70e3
fixing flaky test
denini08 Nov 4, 2021
bcfc967
Merge pull request #1193 from denini08/master
marci4 Nov 4, 2021
118b933
mini comment error
antonilol Nov 20, 2021
cad989d
Merge pull request #1200 from antonilol/patch-1
PhilipRoman Nov 20, 2021
698f47b
Reset lastPong in onOpen
marci4 Dec 12, 2021
4b75b45
Merge pull request #1204 from marci4/Issue1203
marci4 Dec 19, 2021
11e3d3c
high cpu when channel close exception fix
Adeptius Jan 2, 2022
c2d0873
Merge pull request #1212 from Adeptius/high_cpu_when_channel_close_ex…
marci4 Jan 2, 2022
d9537d6
Issue-1160 Added java.lang.Error handling in WebSocketImpl and WebSoc…
Mar 23, 2022
7700b91
Merge pull request #1 from Serpion-ua/Issue-1160
Serpion-ua Mar 24, 2022
a2eeaaa
Issue-1160 Put whole Error into Exception during Error processing, no…
Mar 24, 2022
e8ef74a
Merge pull request #2 from Serpion-ua/Issue-1160
Serpion-ua Mar 24, 2022
a97965d
Issue-1160 Add whole exception not just exception message when conver…
Mar 24, 2022
7780dbe
Issue-1160 Code clean up, send to client only error type without whol…
Mar 25, 2022
b5a97a5
Issue-1160 Clean up error message in WebSocketImpl if error had been …
serpion Mar 25, 2022
4920cb1
Issue-1160 Removed unnecessary file, added by accident
serpion Mar 25, 2022
ebed7cf
Correct closing web socket connections in case of fatal server stopping
serpion Mar 25, 2022
46ae001
Merge pull request #1223 from Serpion-ua/master
marci4 Mar 25, 2022
569884f
Merge branch 'master' into correctWebSocketClosing
serpion Mar 25, 2022
d00a606
Correct web socket closing: removing unnecessary web socket closing i…
serpion Mar 25, 2022
2c9b091
Merge pull request #1227 from Serpion-ua/correctWebSocketClosing
marci4 Mar 28, 2022
a4d23c3
Fixes #1230 Adjust the handling of RSV1/RSV2/RSV3 in the translateSin…
marci4 Apr 3, 2022
8f1f8e4
Fix formatting
marci4 Apr 3, 2022
5d84099
Merge pull request #1232 from marci4/Issue1230
marci4 Apr 8, 2022
5ff6ede
Update changelog and readme
marci4 Apr 9, 2022
03fdb9c
Merge pull request #1237 from marci4/UpdateChangelog1.5.3
marci4 Apr 9, 2022
a81d0b5
Update to next version 1.5.4
marci4 Apr 9, 2022
bdf928b
Merge pull request #1238 from marci4/Release1.5.3
marci4 Apr 9, 2022
5d4d527
Replace usages of deprecated constructor Integer(String) with Integer…
PhilipRoman Jul 4, 2022
aad6654
Merge pull request #1259 from TooTallNate/replace-deprecated-integer-…
PhilipRoman Jul 4, 2022
5eeb03d
websocketimpl: avoid string copy unless logging trace message
xkommando Feb 11, 2023
e90af48
Make Base64Test independent of JDK
anthonyvdotbe Feb 23, 2023
b79a1a4
Modularize
anthonyvdotbe Feb 23, 2023
5f4eca3
Merge pull request #1301 from xkommando/master
PhilipRoman Mar 5, 2023
11c5212
Use release parameter
anthonyvdotbe Mar 7, 2023
8fbd5b8
Update GitHub workflows to JDK 17
anthonyvdotbe Mar 7, 2023
70092c6
Merge pull request #1307 from anthonyvdotbe/issue-1306
PhilipRoman Mar 7, 2023
48a1cbf
Merge pull request #1309 from anthonyvdotbe/issue-1308
PhilipRoman Mar 7, 2023
3e8d3c5
Add distribution attribute to GitHub workflows
anthonyvdotbe Mar 7, 2023
239ded8
Merge pull request #1314 from anthonyvdotbe/issue-1308
PhilipRoman Mar 7, 2023
30ba037
Merge branch 'issue-1308' into master
PhilipRoman Mar 11, 2023
12a7bb5
Remove snapshot badge
marci4 Jul 14, 2023
02e599d
Merge pull request #1341 from marci4/RemoveSnapshotLinks
marci4 Jul 14, 2023
55588f1
Update changelog
marci4 Jul 20, 2023
f4ab474
Merge pull request #1344 from marci4/update_changelog_release_1.5.4
marci4 Jul 20, 2023
d33bedd
Increase version to 1.5.5
marci4 Jul 20, 2023
69140a6
Merge pull request #1345 from marci4/increase_version_1.5.5
marci4 Jul 20, 2023
5176255
Bump version in install instructions
Minion3665 Jul 25, 2023
bc180ae
Merge pull request #1348 from Minion3665/patch-2
marci4 Jul 31, 2023
85b4999
Fix multiple issues related to reconnect
PhilipRoman Nov 1, 2023
9055e82
Fix the inconsistent version between dependency in pom.xml and build.…
HappyHacker123 Nov 10, 2023
9fad5bc
Merge pull request #1371 from HappyHacker123/master
PhilipRoman Nov 12, 2023
8834112
Merge pull request #1367 from TooTallNate/reconnect-fix
PhilipRoman Nov 29, 2023
43c9693
Update changelog for 1.5.5
marci4 Dec 18, 2023
fe637a8
Merge pull request #1377 from marci4/1.5.5-update_changelog
marci4 Dec 18, 2023
4a6e1c4
Increase version to 1.5.6
marci4 Dec 18, 2023
a1ab3dc
Merge pull request #1378 from marci4/1.5.5_increase_version
marci4 Dec 18, 2023
1ecae0e
Replace <tt> with <code> in javadocs
PhilipRoman Jan 13, 2024
9dce7a8
Merge pull request #1385 from TooTallNate/javadoc-tt-fix
marci4 Jan 15, 2024
d4365d4
Retrieve default SSL socket factory to reconcile the configuration wi…
Jan 16, 2024
de7b8b2
Merge pull request #1387 from pavel-treutner/issue-1382
marci4 Jan 30, 2024
c717bc7
Provide way to start the client/server as daemons
newk5 Nov 27, 2021
9f53da4
Merge pull request #1391 from TooTallNate/daemon
marci4 Feb 4, 2024
4bdfe1f
Release 1.5.6
marci4 Feb 6, 2024
ae78d38
Merge pull request #1394 from marci4/1.5.5_release
marci4 Feb 6, 2024
765932a
Increase version to 1.5.7
marci4 Feb 6, 2024
6910229
Merge pull request #1395 from marci4/1.5.6_increase_version
marci4 Feb 6, 2024
f7d51a8
Explicitly close the socket when resetting the client if the connecti…
Feb 16, 2024
d8eb0f8
Ensure the socket is not null when attempting to close it.
Feb 21, 2024
aa84b39
Merge pull request #1399 from ysi-camerona/ISSUE-1397
PhilipRoman Feb 24, 2024
acd03d0
Add test for connectBlocking cleanup (#1399)
PhilipRoman Feb 24, 2024
1f842a6
Add timeout to CI test
PhilipRoman Apr 15, 2024
f625a1a
Allow setting custom TCP receive buffer size
PhilipRoman Apr 14, 2024
7e47e4d
Merge pull request #1407 from TooTallNate/receive-buffer-size
marci4 Apr 27, 2024
c793f34
Merge pull request #1401 from TooTallNate/connect_blocking_cleanup_test
PhilipRoman Apr 27, 2024
ad3d043
Fix WebSocketServer sometimes missing GET request
robert-s-ubi Jun 8, 2024
cd08f83
Merge pull request #1419 from ubitricity/fix_issue_1418_websocketserv…
PhilipRoman Jun 10, 2024
dd07648
Release 1.5.7
marci4 Jul 8, 2024
d866754
Merge pull request #1432 from marci4/1.5.7_release
marci4 Jul 8, 2024
202d7a4
Increase version to 1.5.8
marci4 Jul 8, 2024
4aef466
Merge pull request #1433 from marci4/1.5.7_increase_version
marci4 Jul 8, 2024
01e1a40
Drop support for Java 1.7
marci4 Jul 12, 2024
c4bf44e
Merge pull request #1435 from marci4/feature/drop_java1.7
marci4 Jul 14, 2024
a566891
Correctly clone values provided by the setter
marci4 Oct 8, 2024
1e9fbbf
Reuse inflater/deflater
marci4 Oct 8, 2024
fe7635b
Provide a setter/getter to set the deflater level
marci4 Oct 13, 2024
4f4aed5
Extends tests to better test the deflater level
marci4 Oct 13, 2024
dfca00b
Add Constructor with custom compression level
marci4 Oct 22, 2024
3b29042
Merge pull request #1439 from marci4/fix/Issue1437
marci4 Nov 11, 2024
8eae452
Add support for creating server from existing Channel
PhilipRoman Nov 14, 2024
e5253dc
Add example of using WebSocketServer with systemd socket activation
PhilipRoman Nov 14, 2024
2b8dd96
Merge pull request #1442 from TooTallNate/socket-activation
marci4 Dec 8, 2024
fcb7595
Release 1.6.0
marci4 Dec 15, 2024
da3cf2a
Merge pull request #1446 from marci4/1.6.0_release
marci4 Dec 15, 2024
f66edcb
Increase Version to 1.6.1
marci4 Dec 15, 2024
54b860a
Merge pull request #1447 from marci4/increase_version_1.6.1
marci4 Dec 15, 2024
7be8e7a
Remove outdated build info badge
marci4 Dec 15, 2024
253c3b8
Merge pull request #1448 from marci4/remove_build_badge
marci4 Dec 15, 2024
1ed042e
Update all dependencies and update to JUnit 5 (#1450)
marci4 Jan 26, 2025
d868887
Fix JUnit 5 config for gradle
pdkovacs Feb 16, 2025
c69b298
Merge pull request #1458 from pdkovacs/fix-gradle-junit5-config
PhilipRoman Feb 17, 2025
611d897
Added reconnectBlocking overload that supports timeout in WebSocketCl…
Yuval-Roth Apr 19, 2025
3d8b96f
Added since 1.6.1 in method doc
Yuval-Roth Apr 19, 2025
8c5766a
Merge pull request #1465 from Yuval-Roth/master
PhilipRoman Apr 19, 2025
f6a46be
Add new RFC 7962-compliant Per-Message Deflate extension implementation
robert-s-ubi Dec 25, 2025
0ece865
Replace old PerMessageDeflateExtension with new implementation
robert-s-ubi Jan 7, 2026
2636218
Fix PerMessageDeflatExtension RFC 7692 number typos
robert-s-ubi Jan 9, 2026
238fc82
Rename PerMessageDeflateExtension maxFrameSize to maxFragmentSize
robert-s-ubi Jan 9, 2026
c465a9a
Remove PerMessageDeflateExtension#getCompressionRatio()
robert-s-ubi Jan 9, 2026
4da0258
Revert "Remove PerMessageDeflateExtension#getCompressionRatio()"
robert-s-ubi Jan 9, 2026
a27ba48
Document how to use PerMessageDeflateExtension#getCompressionRatio()
robert-s-ubi Jan 9, 2026
afeacbf
Merge pull request #1498 from ubitricity/add_new_websocketpermessaged…
marci4 Jan 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: Java Code Style Check with Maven

Expand All @@ -11,10 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: '17'
distribution: 'temurin'
- name: Code Style Check
run: mvn -B checkstyle:check --file pom.xml
25 changes: 16 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
name: Continuous Integration

on: [push]
on: [push, pull_request]

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: '17'
distribution: 'temurin'
- name: Maven Version
run: mvn --version
- name: Build
run: mvn -DskipTests package --file pom.xml

Test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 1.8
java-version: '17'
distribution: 'temurin'
- name: Maven Version
run: mvn --version
- name: Test
run: mvn test --file pom.xml
11 changes: 5 additions & 6 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: '17'
distribution: 'temurin'
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
Expand Down
135 changes: 133 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,134 @@
# Change log

###############################################################################
## Version Release 1.6.0 (2024/12/15)

#### Breaking Changes

* [Issue 1434](https://github.com/TooTallNate/Java-WebSocket/issues/1434) - Drop Java 1.7 support ([PR 1435](https://github.com/TooTallNate/Java-WebSocket/pull/1435))
* [PR 1435](https://github.com/TooTallNate/Java-WebSocket/pull/1435) - Drop support for Java 1.7

#### Bugs Fixed

* [Issue 1437](https://github.com/TooTallNate/Java-WebSocket/issues/1437) - Question: How can the compression threshold be set for the PerMessageDeflateExtension in a Deflate Client? ([PR 1439](https://github.com/TooTallNate/Java-WebSocket/pull/1439))
* [Issue 1400](https://github.com/TooTallNate/Java-WebSocket/issues/1400) - PerMessageDeflateExtension#setDeflater()/#setInflater() is overwritten in case of no_context_takeover ([PR 1439](https://github.com/TooTallNate/Java-WebSocket/pull/1439))
* [PR 1439](https://github.com/TooTallNate/Java-WebSocket/pull/1439) - Clone PerMessageDeflateExtension values correctly

#### New Features

* [Issue 1440](https://github.com/TooTallNate/Java-WebSocket/issues/1440) - Support for inherited sockets ([PR 1442](https://github.com/TooTallNate/Java-WebSocket/pull/1442))
* [PR 1442](https://github.com/TooTallNate/Java-WebSocket/pull/1442) - Socket activation

In this release 4 issues and 3 pull requests were closed.

###############################################################################
## Version Release 1.5.7 (2024/07/08)

#### Breaking Changes

* [PR 1399](https://github.com/TooTallNate/Java-WebSocket/pull/1399) - Have connectBlocking clean up after a timeout

#### Bugs Fixed

* [PR 1419](https://github.com/TooTallNate/Java-WebSocket/pull/1419) - Fix issue #1418: WebSocketServer sometimes misses GET request after SSL handshake

#### New Features

* [PR 1407](https://github.com/TooTallNate/Java-WebSocket/pull/1407) - Allow setting custom TCP receive buffer size
* [PR 1399](https://github.com/TooTallNate/Java-WebSocket/pull/1399) - Have connectBlocking clean up after a timeout

In this release 0 issues and 4 pull requests were closed.

###############################################################################
## Version Release 1.5.6 (2024/02/06)

#### Bugs Fixed

* [Issue 1382](https://github.com/TooTallNate/Java-WebSocket/issues/1382) - WebSocketClient.upgradeSocketToSSL is enforcing TLS 1.2 ([PR 1387](https://github.com/TooTallNate/Java-WebSocket/pull/1387))
* [PR 1387](https://github.com/TooTallNate/Java-WebSocket/pull/1387) - Retrieve default SSL socket factory

#### New Features

* [Issue 1390](https://github.com/TooTallNate/Java-WebSocket/issues/1390) - Thread created by NamedThreadFactory should be a daemon ([PR 1391](https://github.com/TooTallNate/Java-WebSocket/pull/1391))
* [PR 1391](https://github.com/TooTallNate/Java-WebSocket/pull/1391) - Provide way to start the client/server as daemons

In this release 2 issues and 2 pull requests were closed.

###############################################################################

## Version Release 1.5.5 (2023/12/18)

#### Bugs Fixed

* [Issue 1365](https://github.com/TooTallNate/Java-WebSocket/issues/1365) - Hang on reconnectBlocking
* [Issue 1364](https://github.com/TooTallNate/Java-WebSocket/issues/1364) - NPE during reconnect ([PR 1367](https://github.com/TooTallNate/Java-WebSocket/pull/1367))
* [PR 1367](https://github.com/TooTallNate/Java-WebSocket/pull/1367) - Fix multiple issues related to reconnect

In this release 2 issues and 1 pull request were closed.

###############################################################################

## Version Release 1.5.4 (2023/07/20)

#### New Features

* [Issue 1308](https://github.com/TooTallNate/Java-WebSocket/issues/1308) - Add support for Java modules ([PR 1309](https://github.com/TooTallNate/Java-WebSocket/pull/1309))
* [PR 1309](https://github.com/TooTallNate/Java-WebSocket/pull/1309) - Add support for Java modules

#### Refactoring

* [PR 1259](https://github.com/TooTallNate/Java-WebSocket/pull/1259) - Replace usages of deprecated constructor Integer(String) with Integer.parseInt

In this release 1 issue and 2 pull requests were closed.

###############################################################################

## Version Release 1.5.3 (2022/04/09)

#### Bugs Fixed

* [Issue 1230](https://github.com/TooTallNate/Java-WebSocket/issues/1230) - CONTINUOUS should be decoded depending on the first frame ([PR 1232 ](https://github.com/TooTallNate/Java-WebSocket/pull/1232) by [@marci4](https://github.com/marci4))
* [Issue 1203](https://github.com/TooTallNate/Java-WebSocket/issues/1203) - Lost connection detection not working on delayed connect-Call ([PR 1204 ](https://github.com/TooTallNate/Java-WebSocket/pull/1204) by [@marci4](https://github.com/marci4))
* [Issue 1164](https://github.com/TooTallNate/Java-WebSocket/issues/1164) - [Android & Node.js Server] Problem using PerMessageDeflateExtension with custom ping/pong messages ? ([PR 1165 ](https://github.com/TooTallNate/Java-WebSocket/pull/1165) by [@marci4](https://github.com/marci4))
* [Issue 1160](https://github.com/TooTallNate/Java-WebSocket/issues/1160) - `WebSocketWorker` does not handle `Throwable` ([PR 1223 ](https://github.com/TooTallNate/Java-WebSocket/pull/1223) by [@Serpion-ua](https://github.com/Serpion-ua))
* [Issue 1142](https://github.com/TooTallNate/Java-WebSocket/issues/1142) - Verifying server certificate ([PR 1143 ](https://github.com/TooTallNate/Java-WebSocket/pull/1143) by [@marci4](https://github.com/marci4))
* [PR 1227](https://github.com/TooTallNate/Java-WebSocket/pull/1227) - Correct web socket closing, by [@Serpion-ua](https://github.com/Serpion-ua)
* [PR 1223](https://github.com/TooTallNate/Java-WebSocket/pull/1223) - Issue-1160 Added java.lang.Error handling in WebSocketImpl and WebSocketServer, by [@Serpion-ua](https://github.com/Serpion-ua)
* [PR 1212](https://github.com/TooTallNate/Java-WebSocket/pull/1212) - high cpu when channel close exception fix, by [@Adeptius](https://github.com/Adeptius)

#### New Features

* [PR 1185](https://github.com/TooTallNate/Java-WebSocket/pull/1185) - Added support unresolved socket addresses, by [@vtsykun](https://github.com/vtsykun)

In this release 5 issues and 8 pull requests were closed.

###############################################################################

## Version Release 1.5.2 (2021/04/05)

#### Bugs Fixed

* [Issue 1132](https://github.com/TooTallNate/Java-WebSocket/issues/1132) - Draft_6455 flagged by Veracode CWE-331 replace Random with SecureRandom ([PR 1133 ](https://github.com/TooTallNate/Java-WebSocket/pull/1133) by [@marci4](https://github.com/marci4))
* [Issue 1053](https://github.com/TooTallNate/Java-WebSocket/issues/1053) - It's an invalid check null with SEC_WEB_SOCKET_KEY . ([PR 1054 ](https://github.com/TooTallNate/Java-WebSocket/pull/1054) by [@dota17](https://github.com/dota17))
* [Issue 1026](https://github.com/TooTallNate/Java-WebSocket/issues/1026) - Force client to use the valid schema ([PR 1025 ](https://github.com/TooTallNate/Java-WebSocket/pull/1025) by [@yindex](https://github.com/yindex))
* [PR 1070](https://github.com/TooTallNate/Java-WebSocket/pull/1070) - Prioritise using provided socket factory when creating socket with proxy, by [@marci4](https://github.com/marci4)
* [PR 1028](https://github.com/TooTallNate/Java-WebSocket/pull/1028) - Fixed typo in WebSocketClient.reset's error message, by [@alphaho](https://github.com/alphaho)
* [PR 1018](https://github.com/TooTallNate/Java-WebSocket/pull/1018) - Added missing return character, by [@pawankgupta-se](https://github.com/pawankgupta-se)

#### New Features

* [Issue 1008](https://github.com/TooTallNate/Java-WebSocket/issues/1008) - Improve Sec-WebSocket-Protocol usability ([PR 1034 ](https://github.com/TooTallNate/Java-WebSocket/pull/1034) by [@marci4](https://github.com/marci4))

#### Refactoring

* [Issue 1050](https://github.com/TooTallNate/Java-WebSocket/issues/1050) - What about adding the CodeFormatterProfile.xml with the code format ? ([PR 1060 ](https://github.com/TooTallNate/Java-WebSocket/pull/1060) by [@dota17](https://github.com/dota17))
* [PR 1072](https://github.com/TooTallNate/Java-WebSocket/pull/1072) - Improve code quality, by [@marci4](https://github.com/marci4)
* [PR 1060](https://github.com/TooTallNate/Java-WebSocket/pull/1060) - Using Google Java Code Style To Reformat Code, by [@dota17](https://github.com/dota17)

In this release 5 issues and 9 pull requests were closed.

###############################################################################

## Version Release 1.5.1 (2020/05/10)

#### Bugs Fixed
Expand All @@ -8,13 +137,15 @@

In this release 1 issue and 1 pull request were closed.

###############################################################################

## Version Release 1.5.0 (2020/05/06)

#### Breaking Changes

This release requires API Level 1.7.

#### Security
#### Security

This release contains a security fix for [CVE-2020-11050](https://nvd.nist.gov/vuln/detail/CVE-2020-11050).

Expand Down Expand Up @@ -318,4 +449,4 @@ In this release 11 issues and 15 pull requests were closed.
* [Issue 271](https://github.com/TooTallNate/Java-WebSocket/issues/271) - There is no notification for websocket server success start
* [PR 462](https://github.com/TooTallNate/Java-WebSocket/pull/462) - Make TCP_NODELAY accessible

In this release 6 issues and 1 pull request were closed.
In this release 6 issues and 1 pull request were closed.
22 changes: 12 additions & 10 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Java WebSockets
===============
[![Build Status](https://travis-ci.org/marci4/Java-WebSocket-Dev.svg?branch=master)](https://travis-ci.org/marci4/Java-WebSocket-Dev)
[![Javadocs](https://www.javadoc.io/badge/org.java-websocket/Java-WebSocket.svg)](https://www.javadoc.io/doc/org.java-websocket/Java-WebSocket)
[![Maven Central](https://img.shields.io/maven-central/v/org.java-websocket/Java-WebSocket.svg)](https://mvnrepository.com/artifact/org.java-websocket/Java-WebSocket)
[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.java-websocket/Java-WebSocket.svg)](https://oss.sonatype.org/content/repositories/snapshots/org/java-websocket/Java-WebSocket/)

This repository contains a barebones WebSocket server and client implementation
written in 100% Java. The underlying classes are implemented `java.nio`, which allows for a
Expand All @@ -15,8 +13,8 @@ Implemented WebSocket protocol versions are:
* [RFC 6455](http://tools.ietf.org/html/rfc6455)
* [RFC 7692](http://tools.ietf.org/html/rfc7692)

[Here](https://github.com/TooTallNate/Java-WebSocket/wiki/Drafts) some more details about protocol versions/drafts.
[PerMessageDeflateExample](https://github.com/TooTallNate/Java-WebSocket/wiki/PerMessageDeflateExample) enable the extension with reference to both a server and client example.
[Here](https://github.com/TooTallNate/Java-WebSocket/wiki/Drafts) some more details about protocol versions/drafts.
[PerMessageDeflateExample](https://github.com/TooTallNate/Java-WebSocket/wiki/PerMessageDeflateExample) enable the extension with reference to both a server and client example.


## Getting Started
Expand All @@ -31,7 +29,7 @@ To use maven add this dependency to your pom.xml:
<dependency>
<groupId>org.java-websocket</groupId>
<artifactId>Java-WebSocket</artifactId>
<version>1.5.1</version>
<version>1.6.0</version>
</dependency>
```

Expand All @@ -42,7 +40,11 @@ mavenCentral()
```
Then you can just add the latest version to your build.
```xml
compile "org.java-websocket:Java-WebSocket:1.5.1"
compile "org.java-websocket:Java-WebSocket:1.6.0"
```
Or this option if you use gradle 7.0 and above.
```xml
implementation 'org.java-websocket:Java-WebSocket:1.6.0'
```

#### Logging
Expand Down Expand Up @@ -76,14 +78,14 @@ Writing your own WebSocket Client
The `org.java_websocket.client.WebSocketClient` abstract class can connect to
valid WebSocket servers. The constructor expects a valid `ws://` URI to
connect to. Important events `onOpen`, `onClose`, `onMessage` and `onError`
get fired throughout the life of the WebSocketClient, and must be implemented
get fired throughout the life of the WebSocketClient, and must be implemented
in **your** subclass.

An example for a WebSocketClient can be found in both the [wiki](https://github.com/TooTallNate/Java-WebSocket/wiki#client-example) and the [example](https://github.com/TooTallNate/Java-WebSocket/tree/master/src/main/example) folder.

Examples
-------------------

You can find a lot of examples [here](https://github.com/TooTallNate/Java-WebSocket/tree/master/src/main/example).

WSS Support
Expand All @@ -94,7 +96,7 @@ To see how to use wss please take a look at the examples.<br>
If you do not have a valid **certificate** in place then you will have to create a self signed one.
Browsers will simply refuse the connection in case of a bad certificate and will not ask the user to accept it.
So the first step will be to make a browser to accept your self signed certificate. ( https://bugzilla.mozilla.org/show_bug.cgi?id=594502 ).<br>
If the websocket server url is `wss://localhost:8000` visit the url `https://localhost:8000` with your browser. The browser will recognize the handshake and allow you to accept the certificate. This technique is also demonstrated in this [video](http://www.youtube.com/watch?v=F8lBdfAZPkU).
If the websocket server url is `wss://localhost:8000` visit the url `https://localhost:8000` with your browser. The browser will recognize the handshake and allow you to accept the certificate.

The vm option `-Djavax.net.debug=all` can help to find out if there is a problem with the certificate.

Expand All @@ -111,7 +113,7 @@ Minimum Required JDK

`Java-WebSocket` is known to work with:

* Java 1.7 and higher
* Java 8 and higher

Other JRE implementations may work as well, but haven't been tested.

Expand Down
Loading