original_string: 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);
  	}
code: 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);
  	}
code_tokens: 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 ) ; }
docstring: Open the websocket connection to the eventsocket server
  
  @return  void
docstring_tokens: Open the websocket connection to the eventsocket server