Event: onConnect

Event is calling just after connection to another cluster was opened. It passes connector object whitch is instance of SkynetConnectionInterface as an argument. With this event you can get raw encrypted data (response) from connection.

/src/SkynetUser/MyListener.php
public function onConnect($conn = null)  
{
/* code executed after connection to cluster */
}

To get raw data from connection use:
/src/SkynetUser/MyListener.php
public function onConnect($conn = null)  
{
$rawData = $conn->getData();
}

To get address of connection:
/src/SkynetUser/MyListener.php
public function onConnect($conn = null)  
{
$address = $conn->getUrl();
}

More available API methods you will find in API Documentation.
Full API Documentation is included in Skynet packages available on GitHub.