public function recv()
	{
		// receive a message from the socket
		$message = $this->ws->receive();

		// is the message is empty?
		if (empty($message))
		{
			return;
		}

		// decode the message (json_decode + error checking)
		$message = $this->decodeMessage($message);

		// injest and route the message
		$this->injest($message);
	}
public function recv()
	{
		// receive a message from the socket
		$message = $this->ws->receive();

		// is the message is empty?
		if (empty($message))
		{
			return;
		}

		// decode the message (json_decode + error checking)
		$message = $this->decodeMessage($message);

		// injest and route the message
		$this->injest($message);
	}
public function recv ( ) { // receive a message from the socket $ message = $ this -> ws -> receive ( ) ; // is the message is empty? if ( empty ( $ message ) ) { return ; } // decode the message (json_decode + error checking) $ message = $ this -> decodeMessage ( $ message ) ; // injest and route the message $ this -> injest ( $ message ) ; }
Receive a message from the socket

@return void
Receive a message from the socket