janus-gateway
janus-gateway copied to clipboard
Pull out all helper methods
There three helper methods which was in init
just because of using Janus.error
or Janus.warn
but we can pull out those log methods too with default noop
values.
Also added returns of cached errors so user can do extra checks like
const err = Janus.attachMediaStream(el, stream);
if (err) {
// ...
}