ServerSessionManager registerConnection ( String client , Connection connection ) { ServerSessionContext session = clients . get ( client ) ; if ( session != null ) { session . setConnection ( connection ) ; } connections . put ( client , connection ) ; return this ; }
Registers a connection .