Actually, I worked it out. Thanks!
On Saturday, October 15, 2016 at 12:51:10 PM UTC-4, mniel...@gmail.com
> I have the following code:
> val cmdSrc: Source[Message, ActorRef] = Source.actorRef[Message](10,
> val wsr: WebSocketRequest = WebSocketRequest(myEndpoint)
> val webSocketFlow: Flow[Message, Message,
> Future[WebSocketUpgradeResponse]] = Http().webSocketClientFlow(wsr)
> val webSocketGraph: RunnableGraph[(ActorRef, Future[Done])] =
> val (actorRef, fd): (ActorRef, Future[Done]) = webSocketGraph.run()
> The idea is that I want to send messages to actorRef that are then sent
> through the flow.
> This code produces the required result, but its an early and amateurish
> attempt as I try to understand Akka.
> My questions are:
> - Is this somewhere near the accepted idiom, or is there a better
> representation of the same thing?
> - How do I get my hands on the Future[WebSocketUpgradeResponse] from
> webSocketFlow (line 3)?
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> 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 post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.