/** * Open task event * * @param ConnectionInterface $conn */ 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(); } }
/** * Greeting message test */ public function testOpen() { $this->assertInternalType('string', Messenger::open('test')); }