Closed 11111000000 closed 8 years ago
Hi @11111000000 , note that getPeers only works when you're using a privileged alias key. Have you verified that the alias key you're using has privileged feature enabled ?
Getting the same issue. Yes I have verified that I am using privileged key and still getting the error
Hi @udit7590, may I know your username and the name of the key you're using ?
@tienthanh8490 Username: uditvinsol
, API key name: alias-Privileged
Hi @udit7590 , I tested using your key and was able to get the list of other peers with getPeers().
Note that from the document , if you don't set the parameter showAll=true, getPeers() will only provide the list of unprivileged peers (autoIntroduce = isPrivileged = false). I also noticed that you haven't created any unprivileged alias key, so if you run getPeers() without any parameter you won't be able to get anything in your case.
Could you try with getPeers(true) and let me know the result ?
Hi @11111000000 and @udit7590, hadn't heard from you for awhile on this issue, which I'll assume it's fine now on your end. Please feel free to open a support ticket here if this issue still persists again. I'm closing this ticket for now.
, used after success
skylink.init
, never call it's callback and no anygetPeersStateChange
triggered. ButpeerJoined
works as expected. So, I syncronize list of peers through counting ofpeerJoined
,peerLeft
events.