Adds FlushMessage ReceivedMessages and Timeout to Websocket Connection

Contributing to Open Source Software