How to get an actor reference (ActorRef) from ActorFlow?
问题 According to the Play documentation on WebSockets the standard way to establish a WebSocket is to use ActorFlow.actorRef , which takes a function returning the Props of my actor. My goal is to get a reference to this underlying ActorRef , for instance in order to send a first message or to pass the ActorRef to another actor's constructor. In terms of the minimal example from the documentation, I'm trying to achieve this: class WebSocketController @Inject() (implicit system: ActorSystem,