MenuMenu

RTCMultiConnection.leave

Leave all peers

closeSocket is recommended

connection.closeSocket();
    

Please check "closeSocket" documentation: /docs/closeSocket/