[CommCoreModule] Call onopen and onclose callback from ClientGetReadReactor
Summary: Execute (well queue up on JS event thread) the onopen callback when the OnReadInitialMetadataDone lifecycle event is hit by gRPC. Do the same for onclose callback when the OnDone lifecycle event is hit.
Test Plan:
- Call openSocket
- Assign .onopen callback
- Assign .onclose callback
- Make sure .onopen callback fires (console log something)
- Call socket.close()
- Make sure the .onclose callback fires (console log something)
Reviewers: ashoat, palys-swm, def-au1t, varun, karol-bisztyga, jimpo
Reviewed By: ashoat, karol-bisztyga
Subscribers: Adrian, benschac
Differential Revision: https://phabricator.ashoat.com/D3123