Releases: houd1ni/WebsocketPromisify
Releases · houd1ni/WebsocketPromisify
2.7.0: Multiple fixes & features.
API:
- reconnection_attempts config option added. It is a number.
- open() method is now available. It opens previously closed connection without need to recreate the whole client.
- ping is now pinging only if nothing was sent between pinging period: no excess pings now! Closes #43
- Multiple reconnection bugs fixed.
Deps: upgraded.
Code:
- internal types update.
- Tests upgraded.
- Cleanups and some cleaner rework.
2.6.0: 'timeout' event added.
Packaging: import { WSC } from 'wspromisify/src/WebSocketClient'
and other stuff from src/
is now available due to addition in package.json.
API: timeout
event added. The argument is a data that was trying to send.
Deps: upgraded.
Types: internal types update.
Code:
- internal event handling update.
- Multiple connection resolves changed to
once
. - Cleanups.
2.5.0
2.4.2: Deps upgrade
Only dependency upgrade and a new format of tests work in progress.
2.1.11
2.1.3
2.1.1
Features
new WSP({ url: '/lalala' })
is now the same asnew WSP({ url: `${location.hostname}:${location.port}/lalala` })
. Throws in non-browsers.- ~0.5Kb less bundle size.
- Resolves .ready() with non-null error code (2) in the case of CLOSING or CLOSED socket state.
Underhood
- Much faster id generation, shorter ids with unicode 48 -> 122.
- cleanup, tests structure heavily improved.
- Upgrade deps including ava test runner.
2.0.0 Full types.
- Typings are far better, fixes constructor's options
any
instead of Partial. - Project structure improved.
1.1.1
full tested release with build!
The same as previous, but pre-built.