Update websocket.client.php

added hasMessages() to test if messages are waiting