Node clients currently do not have an explicit shutdown method. Just drop any references to the client, and it will close when it gets garbage collected.
On Tue, Jul 26, 2016 at 3:38 PM <[email protected]> wrote: > I noticed in the supplied examples that the Java clients have a way of > cleanly closing the connection w/o creating server exceptions. > > This is what it looks like (from the HelloWorldClient.java example): > > public void shutdown() throws InterruptedException { > channel.shutdown().awaitTermination(5, TimeUnit.SECONDS); > } > > What's the equivalent for Node? > > I noticed that premature termination of Node clients will cause exceptions > on Java servers. > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/804babcb-0051-4775-a8f9-5a902d38394a%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/804babcb-0051-4775-a8f9-5a902d38394a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAPK2-4fydOJkM2yiMucxvwxdtdrnfGTfsWJfnMetOgZ7ivTCWg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
