public function onServerStart(ServerEvent $event)
    {
        $event = $event->getEventLoop();

        // Cuando el servidor se inicie querrá decir que, previamente, estaba parado, por tanto
        // debemos eliminar todos los Clientes Web que tuviésemos almacenados.

        // Eliminar Device WebClient
        $em = $this->container->get('doctrine.orm.default_entity_manager');
        $reDevice = $em->getRepository('SopinetChatBundle:Device');
        $devices = $reDevice->findByDeviceType(Device::TYPE_WEB);
        /** @var Device $device */
        foreach($devices as $device) {
            echo "State to 0 in device with SessionID: ".$device->getDeviceId() . PHP_EOL;
            $device->setState('0');
            $em->flush($device);
            $em->flush();
        }

        echo 'Server was successfully started!'. PHP_EOL;
    }