{"id":273,"date":"2020-05-15T14:06:43","date_gmt":"2020-05-15T14:06:43","guid":{"rendered":"https:\/\/startersites.io\/blocksy\/app\/?p=273"},"modified":"2025-11-05T14:19:29","modified_gmt":"2025-11-05T14:19:29","slug":"steps-to-test-grpc-duplex-methods","status":"publish","type":"post","link":"https:\/\/fintx.dev\/?p=273","title":{"rendered":"Testing gRPC Duplex \/ Bidirectional Methods"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"273\" class=\"elementor elementor-273\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3045635d e-flex e-con-boxed e-con e-parent\" data-id=\"3045635d\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2d84f4ae elementor-widget elementor-widget-text-editor\" data-id=\"2d84f4ae\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Before we get started have a look at the <a href=\"https:\/\/fintx.dev\/?p=345\">QuickStart<\/a> Guide to see the steps to create a gRPC Client. In this tutorial we will create a client for the sample gRPC Northwind Client that is included in FintX<\/p>\n<p>After creating the client, double click on the <em>UpdateOrderStatus<\/em> method.\u00a0 This method is a duplex\/bi-directional streaming method.<\/p>\n<h3>Invoke the duplex method<\/h3>\n<ol>\n<li>Double-click the UpdateOrderStatus method<\/li>\n<li>Edit the values in the request panel<\/li>\n<li>Click on the PLAY button to send the inital request to the server<\/li>\n<\/ol>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignleft wp-image-2596 size-large\" src=\"https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_1-1024x523.png\" alt=\"\" width=\"1024\" height=\"523\" srcset=\"https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_1-1024x523.png 1024w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_1-300x153.png 300w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_1-768x392.png 768w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_1-1536x785.png 1536w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_1.png 1910w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h3>\u00a0<\/h3>\n<h3>Send a stream of requests<\/h3>\n<p><img decoding=\"async\" class=\"alignleft wp-image-2595 size-large\" src=\"https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex-2-1024x525.png\" alt=\"\" width=\"1024\" height=\"525\" srcset=\"https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex-2-1024x525.png 1024w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex-2-300x154.png 300w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex-2-768x393.png 768w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex-2-1536x787.png 1536w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex-2.png 1907w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<ol>\n<li>Edit the current stream request values<\/li>\n<li>Click on the Send button to write to the server stream. Repeat 1 and 2 as many times as you need to write messages to the server stream<\/li>\n<li>Once you are done, click on the End button<\/li>\n<\/ol>\n<h3>Finish up<\/h3>\n<p><img decoding=\"async\" class=\"alignleft wp-image-2594 size-large\" src=\"https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_3-1024x508.png\" alt=\"\" width=\"1024\" height=\"508\" srcset=\"https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_3-1024x508.png 1024w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_3-300x149.png 300w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_3-768x381.png 768w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_3-1536x762.png 1536w, https:\/\/fintx.dev\/wp-content\/uploads\/2025\/11\/Duplex_3.png 1905w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<ol>\n<li>The response stream panel displays in real-time streaming responses from the server<\/li>\n<li>Click the STOP button to end the session<\/li>\n<li>The response panel shows the final server response\u00a0<\/li>\n<\/ol>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Before we get started have a look at the QuickStart Guide to see the steps to create a gRPC Client. In this tutorial we will create a client for the sample gRPC Northwind Client that is included in FintX After creating the client, double click on the UpdateOrderStatus method.\u00a0 This method is a duplex\/bi-directional streaming [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[42],"tags":[],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-client-testing"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[]}},"_links":{"self":[{"href":"https:\/\/fintx.dev\/index.php?rest_route=\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fintx.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fintx.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fintx.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fintx.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":5,"href":"https:\/\/fintx.dev\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":2600,"href":"https:\/\/fintx.dev\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions\/2600"}],"wp:attachment":[{"href":"https:\/\/fintx.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fintx.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fintx.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}