Updating example with NonBlocking connection.
Updating example with non-blocking connection.