public function onClose(ConnectionInterface $conn)
    {
        $this->clients->detach($conn);
        $this->console->error(sprintf('Disconnected: %d', $conn->resourceId));
    }
public function onClose(ConnectionInterface $conn)
    {
        $this->clients->detach($conn);
        $this->console->error(sprintf('Disconnected: %d', $conn->resourceId));
    }
public function onClose ( ConnectionInterface $ conn ) { $ this -> clients -> detach ( $ conn ) ; $ this -> console -> error ( sprintf ( 'Disconnected: %d' , $ conn -> resourceId ) ) ; }
Perform action on close.

@param ConnectionInterface $conn [description]

@return [type] [description]
Perform action on close .