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