Hi Alex,

Did you look at the sample TCP client server in the docs?
http://doc.akka.io/docs/akka/2.4.2/scala/stream/stream-io.html

In your code you pass the incoming messages through a Flow.fold, but fold
only ever emits when upstream has completed, so this will make it so that
it only ever can handle one command followed by end of server connection.

You might also want to look into the concept of half-closed - what happens
if the Source completes from the client, or from the server. There is a
parameter "halfClose" that can be set on both client and server that will
affect the behavior.

I hope this helps.
--
Johan Andrén
Akka Team, Lightbend Inc.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" 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].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to