Hello everyone!
I'm trying to write an application that correctly uses the new DI system.
I've read everything available about Runtime DI and
injecting actors, but I have the impression that Play lacks a key component to make `websocket.acceptWithActor` working with DI.
* Creating a Websocket tied to an actor is done with `def acceptWithActor[In, Out](f: RequestHeader => HandlerProps)` who expects an `type HandlerProps = ActorRef => Props`. Play will create a new actor from this props for each incoming connection.
* On the other part, creating an injected Actor required an actor factory binded with `bindActorFactory`.
These 2 approachs are not compatible together.
For what I know, It's currently not possible to use injected dependencies in this actor, and I don't found any workaround to achieve this.
But maybe I'm wrong? Do you know a way to bind a websocket to an actor allowing dependencies injection?