Hi Naonvl,
To disconnect from the PeerJS Server, and then end the call, you can set up a button in the ejs file that triggers the following command:
myPeer.disconnect()
You can read more about handling disconnects in the peerJS documentation here: peerjs.com/docs.html#peerdisconnect
Best,
Lior
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
how to end the call?
Hi Naonvl,
To disconnect from the PeerJS Server, and then end the call, you can set up a button in the ejs file that triggers the following command:
myPeer.disconnect()
You can read more about handling disconnects in the peerJS documentation here:
peerjs.com/docs.html#peerdisconnect
Best,
Lior