I am trying to update a spray sample to work with akka-http, first try. It's not immediately obvious to me how I should associate state data with a client connection in my service. Could someone clarify? I may have missed it in the documentation, so I apologize in advance.
What I need to accomplish is create an actor per connection, or at the very list some data structure where I can maintain some metadata about my connection. I am dealing with a protocol which has multiple upgrades, so I need to store what "level" I'm upgraded to. In spray, I handled this with an actor, which "became" to swap in rules depending on the protocol level, hopefully I can reuse it in akka-http. I am using akka-http / akka-streams 2.0.2 with the low level API, and the websocket api. -- >>>>>>>>>> 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.
