- Fix issue where sessions would only poll once.
- Add ability to connect to an existing handle.
- Bad HTTP status codes are now correctly handled before converting result to JSON.
- Add ability to connect to an existing session.
- Remove files that should not have been published.
- Rewrote tests in Jasmine and vastly expanded coverage.
- Add
start
parameter to new sessions to determine whether they start polling on creation. Session.prototype.poll()
is now public and starts polling if theSession
was created stopped.- Janus errors now emit
error
events toSession
. - All media events now include the entire Janus payload.
- Added additional error-handling.
- Make
Session.prototype.id
a public, read-only property.
- Turns out React Native doesn't like us trying to set up isomorphic-fetch, so now this is the user's responsibility.
- Correctly set up
fetch
global by importingisomorphic-fetch
for side-effects.
- postinstall script no longer expects typings to be installed.
- Track destroying/destroyed status of sessions and guard against double destroying.
- Don't allow attaching handles to destroying/destroyed sessions.
- Remove runtime typechecking as it interferes with statics properties.
- Add additional typechecks.
- Rewrite in TypeScript.
- Remove need to set
Session.fetch
.
- Prefer
window.fetch
tofetch
.
- If
window.fetch
is defined, setSession.fetch
to its correctly-bound value.
- Clean up how sessions are destroyed.
- Eliminate double-emit of "destroyed" event.
- Add lodash dependency.
- Set appropriate
Accept
andContent-Type
headers.
- Somehow the
lib/
directory was excluded by Concourse. Fix.
- Add beginnings of a test suite.
- Ignore .babelrc in published package.
- Add various sanity checks for constructor.
- Initial release.