protected function connectWs()
	{
		$wsUrl = sprintf('ws://%s/v1/clients/%s/ws', $this->serverUrl, $this->getId());

		$this->ws = new WebsocketClient($wsUrl, ['timeout' => 30]);
		$this->ws->setTimeout(30);
	}
protected function connectWs()
	{
		$wsUrl = sprintf('ws://%s/v1/clients/%s/ws', $this->serverUrl, $this->getId());

		$this->ws = new WebsocketClient($wsUrl, ['timeout' => 30]);
		$this->ws->setTimeout(30);
	}
protected function connectWs ( ) { $ wsUrl = sprintf ( 'ws://%s/v1/clients/%s/ws' , $ this -> serverUrl , $ this -> getId ( ) ) ; $ this -> ws = new WebsocketClient ( $ wsUrl , [ 'timeout' => 30 ] ) ; $ this -> ws -> setTimeout ( 30 ) ; }
Open the websocket connection to the eventsocket server

@return  void
Open the websocket connection to the eventsocket server