Closed Qvatra closed 3 years ago
Not sure what version you're trying, but we haven't had a janus.nojquery.js
in the repo in years.
@lminiero hi, thanks for reply!
By running npm i janus-gateway@latest
this is what installed:
"janus-gateway": "^0.2.3",
that package has both janus.js
and janus.nojquery.js
in node_modules/janus-gateway/html
folder
That's not our package and not something we maintain, and 0.2.3
is incredibly old. Closing as not an issue.
I think the npm
folder in tis repo is what you're looking for, for up-to-date stuff.
@lminiero, ok thank you. doest is mean that the intended way of having janus.js in my project is copy pasting that file? or is there npm package that you support?
Not familiar with that code, please check the docs: https://janus.conf.meetecho.com/docs/js-modules
Hello, I was trying to import janus-gateway client-side by doing the following:
const { Janus } = require('janus-gateway/html/janus.nojquery.js');
the problem is that Janus object is not beeing exported so nothing is get binded and I cant access
Janus.init
function in my context.wouldnt it be better to export
Janus
object in bothjanus.js
andjanus.nojquery.js
files by adding:exports.Janus = Janus;
?