Update websocket.class.php