Have listener thread running when connection with server is established.