public function onOpen(ConnectionInterface $conn) {

        // store the new connection
        $this->clients->attach($conn);

        echo Messenger::open($this->getIpAddress($conn));

        // start profiler
        if(defined('SONAR_VERBOSE') === true) {
            Profiler::start();
        }
    }
public function onOpen(ConnectionInterface $conn) {

        // store the new connection
        $this->clients->attach($conn);

        echo Messenger::open($this->getIpAddress($conn));

        // start profiler
        if(defined('SONAR_VERBOSE') === true) {
            Profiler::start();
        }
    }
public function onOpen ( ConnectionInterface $ conn ) { // store the new connection $ this -> clients -> attach ( $ conn ) ; echo Messenger :: open ( $ this -> getIpAddress ( $ conn ) ) ; // start profiler if ( defined ( 'SONAR_VERBOSE' ) === true ) { Profiler :: start ( ) ; } }
Open task event

@param ConnectionInterface $conn
Open task event