Changes
- Add support for Node 14 #42
- Rebuild Node 12 bindings from 12.8.2
- Clarify
Supported Node Versions
in README
Changes
- Drop support for Node 8,9,11
- Fix issues with latest Node 12
- Add "Supported Node Versions" section in README
Changes
- If no close code provided from client return
1005
(similar to ws.js module)
Bugs
Changes
Changes
- Return
secureProtocol
to docs (stick with tls 1.2) - Downgrade multiple listeners error to warning (allow listeners overwrite)
Improvement
- Remove
secureProtocol
from required options on ssl
Improvement
- Add SSL support to node 10,11,12,13 (outstanding issue with node 13.9.0 use 13.8.0 instead)
Improvement
- Do not register httpServer on
error
event if server has been passed from the user
Fixes
- Fix typings for on
connection
event
Improvement
- Added support for on
close
event on theWebSocketServer
Fixes
- Validation prints warning if listener is not supported
This is quite a big release with some important changes, improvement and fixes including but not limited to:
Improvement
- Added
noServer
config - Added
clients
getter toWebSocketServer
- Added
handleUpgrade
similar tows
module - Changed values of
OPEN
andCLOSED
onWebSocket
to1
and3
respectively - Reexported
WebSocketServer
underWebSocket.Server
Fixes
- Fixed
perMessageDeflate
configuration - Fixed close code on fuzzing
Removed
- Removed
global.cws
config - Removed
websocket.remoteAddress
as can get data fromwebsocket._socket.remoteAddress
orreq.connection.remoteAddress
- No more
listening
event emitted fromWebSocketServer
(can be implemented using callback)
Many other fixes and improvements...
- Remove support for SSL from Node.js 10+ (use proxy instead like nginx)
- Added support for Node.js 13
- Improved typings for
on('connection')
handler #25 - Improved typings for
verifyClient
#24 - On
verifyClient
fail by default return code401
#24
socket.send(buffer, { binary: false })
will force textopCode
- Adjust
verifyClient
to return the sameinfo
object asws
module instead ofheaders
return origin as headers can be accessed fromreq
- Add support for node 12
- Re throw error from cWS bindings.