In order to prevent session hijacking, the SkyWay signaling server prevents simultaneous connections using the same peerID (although if authentication is enabled, a newer credential will override previous sessions).
If the previous session disconnected from the server uncleanly, e.g. network connection problems, and you try to connect again with the same peerID, the following error message may appear on the client.
PeerId "*" is already in use. Choose a different peerId and try again.
This can be avoided using the following methods.
- If authentication is disabled
You can either wait a while and try again or connect using a different peerID.
It is impossible to use the same peerID right away as this situation cannot be distinguished from session highjacking. - If authentication is enabled
You can connect with the same peerID immediately by generating and using a new credential.
For information on how to renew your credential, see the Overall flow section of the README in the skyway-peer-authentication-samples repository.
Comments
0 comments
Article is closed for comments.