janus-gateway icon indicating copy to clipboard operation
janus-gateway copied to clipboard

Pull out all helper methods

Open redexp opened this issue 9 months ago • 5 comments

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) {
  // ...
}

redexp avatar May 16 '24 10:05 redexp