peerjs-server: Peerjs server deployed on heroku is not working

I used the deploy on Heroku button from this link to deploy a peerjs server. To connect to this server I used

const peer = new Peer(host: 'focusmonk-beta.herokuapp.com', port:9000, path:'/')

But this is not working, am I missing something ?

About this issue

Most upvoted comments

That’s because the default password is wrong. Trying to find a fix

Thank you so much everyone, the problem is solved for me now. Peer cloud server worked. Thank you again @blyzniuk @siddharthmagadum16

I am getting this error, GET https://https//realtime-notepad-voice.herokuapp.com/:433/peerjs/peerjs/id?ts=16351849542150.5264754979506276 net::ERR_NAME_NOT_RESOLVED. I have set the port to 433 still i am getting this error. It works fine on local host, but when i deploy on heroku i get this error. I also found this in the headers. Referrer Policy: strict-origin-when-cross-origin

Here is the frontend code for using peer cloud server.

import Peer from "peerjs";
const myPeer = new Peer(undefined, {
    key: "peerjs",
    debug: 2,
    secure: process.env.REACT_APP_ENV === "PRODUCTION" ? true : false, // secure : false for http connection
  });

you can refer more in the docs https://peerjs.com/docs.html#start

This worked for me, thank you so much for helping me out.