web stats
routing response to a connected client - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 01-24-2017, 04:50 AM
JoeFox JoeFox is offline
Mirth Newb
Join Date: Jan 2014
Posts: 16
JoeFox is on a distinguished road
Question routing response to a connected client

Hi all,

again I have a problem and I can't find the solution.

I have a channel "a" that has a TCP Listener as source with Basic TCP, Keep Connection open and a Receive Timeout with the value 0. The response in the source connector is set to postprocessor. In the postprocessor I have a code like this:

return ResponseFactory.getSentResponse(myresponse);
Then I have a channel "b" that has a Javascript Writer destination that routes messages to the channel "a".

router.routeMessage("a", "mymessage");
Now a client connects to channel "a" so that a TCP connection is established and always open. Then a message runs through channel "b" that routes the message to channel "a". After the message arrives the postprocessor of channel "a" I want to send a response to the connected client on channel "a".

Is that possible? Or is there another solution?

Last edited by JoeFox; 01-24-2017 at 04:55 AM.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 10:00 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation