there should be an event eventually, after a 90-ish second timeout.
if you enter a completely invalid peer ID (not composed entirely of hex digits, not an even number of digits), you'll get an error event almost immediately.
if the peer ID isn't exactly 64 hex digits long, it won't work, because peer IDs are currently always 64 digits (256 bits) long. however, it still tries, so you'll get the error event after the timeout.
I see, thank you for you answer.
Is there any way to have the event immediately?, or at least in the 5 seconds range?.
you can set a timer in your code to fire after however-long-you-want-to-wait.