Update README.md

The update for onConnectToEndpoint() got overwritten by my changes for Acknowledges. Adding the method back to the README.