working connect, disconnect and sending data to the same socket on
localhost