Change return types of onData and OnConnection events.