added time out to websocketclient