Closed shd101wyy closed 5 years ago
i think it has to do with your ts lib. it's there.
Weird. I changed to another computer, ran yarn add @mattkrick/fast-rtc-swarm
again and import
it in a javascript file. I was using visual studio code, and I still couldn't see .on
method. Which editor are you using? Thank you.
screeenshot is from webstorm. just checked vscode & it works there for me too. make sure it's a typescript file, not javascript.
I fixed this by running yarn add strict-event-emitter-types
, this fixed it for me.
Hi there,
I was following the documentation but I was not able to use
swarm.on
function.Any suggestions?
Thank you