Sign in to vote. 0 I need to detect when the connection has been lost, for example if the then take a break of 10 seconds, then sends again 5 seconds data, is ok and everyone behaves well) something where multiple packages are sent between both sides before the connection is considered closed..