Tried a new thread model and try to integrate websocket client into httpclient