Changelog
2.2.1 (October 26, 2017)
PR #38: update dependencies
Changelog
2.0.1 (February 14, 2016)
Fixed npm distribution (lib/
was not published being in .gitignore
).
Changelog
2.0.0 (February 14, 2016)
lib
instead of bundle in dist
. Should
not break node consumers. Could break browserify and webpack consumers.
Certainly breaks bower consumers (bower support has been removed)Changelog
1.1.0 (July 11, 2015)
Moved the code to use ES6. In the process, I also refactored it a bit to use less "exotic" patterns, but there should be no breaking changes to the public API.
Two enhancements:
status
property (connected
/ disconnected
) is now available on the
instancesub
, unsub
, and method
right after
creating the instance. Calls are queued and performed after the connected
eventChangelog
1.0.0 (January 11, 2015)
The library has been rewritten from scratch and its scope somewhat reduced. The purpose of the rewrite, other than simplification, was to implement better under-the-hood APIs to allow more flexibility.
The biggest change is that the library no longer handles method and
subscription calls. I.e., it doesn't take anymore callbacks to the method
and
sub
methods. Rather it returns the id
of those calls, and lets the
consumer handle the result
, updated
, ready
, nosub
events related to
those calls. My plan is to bake this functionality directly into Asteroid,
which sometimes need to have lower level access to those events.
Some options have been removed, namely do_not_autoconnect
,
do_not_autoreconnect
and socket_intercept_function
. The functionalities
provided by the first two options can be recreated, but it requires meddling
with the library internals (one has to re-define the _init
method). I figured
this wouldn't be a problem since I've never found a use case for them. The
third functionality - i.e. intercepting the socket send
method and doing
something with the message that has been sent - is easily recreated by
listening to the message:in
, message:out
private events of the _socket
property of a DDP instance. Other private events are available on the property,
making it easier to monitor and gather metrics about the WebSocket.