You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ./packages/server/networkChannel.tsexportconstSERVER_CHANNEL=SERVER.channelBuilder().receivesFrom(CLIENT,()=>{ ... }).startListening();SERVER_CHANNEL.registerMessageHandler("ping",()=>{thrownewError("Wopsie, I failed to pong.")});
// ./packages/client/main.tsNetworker.initialize(CLIENT,CLIENT_CHANNEL);CLIENT_CHANNEL.request(SERVER,"ping",[]).catch(()=>console.log("OH it failed!"));
The text was updated successfully, but these errors were encountered:
Currently,
CHANNEL::request
will fail to .catch, if other side errors while handling incoming message.Make Monorepo-networker support the following scenario:
The text was updated successfully, but these errors were encountered: