Add support for connection timeout to web socket client
Add cancel handler to the client