When you unbind you get a future that completes once unbinding has completed:

```
val binding: Future[ServerBinding] =
  Tcp().bind("127.0.0.1", 8888).to(Sink.ignore).run()

  binding.map { b =>
    b.unbind() onComplete { 
      case _ => // ... 
    }
  }
```

If this is missing from the docs then please open a ticket and we'll document 
it more explicitly.

-- 
Cheers,
Konrad `ktoso` Malawski
Akka @ Typesafe

On 29 September 2015 at 12:18:57, Clelio De Souza ([email protected]) wrote:

Hi there,

I am trying to find a way of notifying when a Tcp Socket connection is unbound 
on the Tcp bind Source flow (`Tcp().bind("0.0.0.0", port)`). Basically we are 
trying to monitor whenever an established Tcp socket bound connection is 
disconnected.

I couldn't find an out-of-box/standard way of doing that. Any suggestions? Most 
appreciate it!

Regards,
Leo
--
>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to