Features
- Added
closeTimeoutoption (#2308)
Bug fixes
- Handled breaking change in Node.js core (19984854)
Unclaimed project
Are you a maintainer of ws? Claim this project to take control of your public changelog and roadmap.
Changelog
Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js
Last updated 8 days ago
Features
closeTimeout option (#2308)Bug fixes
Sec-WebSocket-Version header was not added
to the HTTP response if the client requested version was either invalid or
unacceptable (#2291).Blob (#2229).A request with a number of headers exceeding the[server.maxHeadersCount][]
threshold could be used to crash a ws server.
const http = require('http');
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 0 }, function () {
const chars = "!#$%&'*+-.0123456789abcdefghijklmnopqrstuvwxyz^_`|~".split('');...
WebSocket constructor now accepts the createConnection option (#2219).allowSynchronousEvents option has been changed to
true (#2221).This is a breaking change in a patch release. The assumption is that the option is not widely used.