Akka websocket and session

Hello.I developing game server based on Akka.I learn Akka.I use websockets in my project.
I want to generate my actor for each session,but I can’t get remote ip and port for websocket client.
And how to bind the actor to a specific user?
Client developed on Android.

1 Like

Extracting the client id is documented here routing-dsl/directives/misc-directives/extractClientIP

Thak you,but I need not routing in my application.Can I do it without routing?

1 Like

Sure, have a look how the directive is implemented and do the same manually.