Updated WS client by adding more events into the constructor and send method. #2