Added code to fail the websocket connection when appropriate
Added code to fail the websocket connection when appropriate

vinipsmaker/tufao,kazarmy/tufao,kazarmy/tufao,kazarmy/tufao,vinipsmaker/tufao,vinipsmaker/tufao