Update websocket.client.php

added hasMessages() to test if messages are waiting
Merge pull request #20 from sfranzyshen/patch-2

Update websocket.client.php