Releases: mitranim/webbs
Releases · mitranim/webbs
0.0.10
0.0.9
0.0.8: breaking improvements and cleanup
* moved `url` and `protocol` arguments from constructor to `.open` * `.close` and `.deinit` are now equivalent * added `webbs.getState` * better ordering of state changes and callbacks; a webbs instance now reaches a consistent state before invoking the corresponding `onEach` callback * `onEachClose` is always called on `.close`, even if there was no underlying socket * removed `sendJson`; just define a function if you want
0.0.7: massively simplified (breaking)
* removed tons of useless code * improved reliability; should no longer accidentally reconnect after manual deinit * renamed `nativeWS` → `nativeWs` * renamed `sendJSON` → `sendJson`
0.0.5: cosmetic renaming (breaking)
* renamed `on*` properties to `onEach*` to reduce confusion with native websocket properties * renamed `deconstructor` to `deinit`
0.0.4: cleanup with breaking changes
* removed dependencies, inlined utils that were previously imported * renamed `Wsocket` -> `Webbs` to reduce confusion * classes are now transpiled by Babel and require 'new'