public function listen(): void
    {
        $this->socket->listen();
        $this->resources[$this->socket->getResourceId()] = $this->socket->getResource();
    }
public function listen(): void
    {
        $this->socket->listen();
        $this->resources[$this->socket->getResourceId()] = $this->socket->getResource();
    }
public function listen ( ) : void { $ this -> socket -> listen ( ) ; $ this -> resources [ $ this -> socket -> getResourceId ( ) ] = $ this -> socket -> getResource ( ) ; }
Listens on the main socket

@return void
@throws ConnectionException
Listens on the main socket