[akka-user] Re: Simple beginner questions: Accessing values in flows

2016-10-19 Thread mnielsen894
So, rightly or wrongly, I did this, which seems to work: val flow = builder.add(wsl.mapMaterializedValue(f => { f map { u => if (u.response.status == StatusCodes.SwitchingProtocols) { log.info("Switched protocols") } else

[akka-user] Re: Simple beginner questions: Accessing values in flows

2016-10-18 Thread Evgeny Shepelyuk
Hi, could you please spare final code ? -- >> 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

[akka-user] Re: Simple beginner questions: Accessing values in flows

2016-10-15 Thread mnielsen894
Actually, I worked it out. Thanks! On Saturday, October 15, 2016 at 12:51:10 PM UTC-4, mniel...@gmail.com wrote: > > I have the following code: > > > val cmdSrc: Source[Message, ActorRef] = Source.actorRef[Message](10, > OverflowStrategy.fail) > > val wsr: WebSocketRequest =