HomePhabricator
Diffusion Comm 68d966d2ea26

[CommCoreModule] Fill out `GRPCStreamHostObject:close()` constructor

Description

[CommCoreModule] Fill out GRPCStreamHostObject:close() constructor

Summary: GRPCStream:close() -> GlobalNetworkSingleton.scheduleOrRun(.. -> NetworkModule.closeGetStream() -> Client.closeGetStream() -> ClientGetReadReactor.context.TryCancel()

Test Plan:

React.useEffect(() => {
  const callbackFn = arg => {
    console.log(`The payload is ${JSON.stringify(arg)}`);
  };

  const blah: GRPCStream = global.CommCoreModule.openSocket();
  blah.onmessage = callbackFn;

  blah.close();
}, []);

Reviewers: ashoat, palys-swm, def-au1t, karol-bisztyga

Reviewed By: ashoat, palys-swm, karol-bisztyga

Subscribers: Adrian, benschac

Differential Revision: https://phabricator.ashoat.com/D3052

Details

Provenance
atulAuthored on Feb 1 2022, 10:47 AM
Reviewer
ashoat
Differential Revision
Restricted Differential Revision
Parents
rCOMMe732c0342706: [17/n] 'PublicKey' table entities and database functions.
Branches
Unknown
Tags
Unknown