# register method

void register(

1. NegotiationsDoneCallback onNegotiationsDone,
2. ErrorCallback handleError,
3. IsAuthenticatedFunction isAuthenticated,
4. SendNonzaFunction sendNonza,
5. GetConnectionSettingsFunction getConnectionSettings,
6. ResetStreamParserFunction resetStreamParser

)

Register the parameters as the corresponding methods in this class. Also initializes the logger.

## Implementation

    void register(
      NegotiationsDoneCallback onNegotiationsDone,
      ErrorCallback handleError,
      IsAuthenticatedFunction isAuthenticated,
      SendNonzaFunction sendNonza,
      GetConnectionSettingsFunction getConnectionSettings,
      ResetStreamParserFunction resetStreamParser,
    ) {
      this.onNegotiationsDone = onNegotiationsDone;
      this.handleError = handleError;
      this.isAuthenticated = isAuthenticated;
      this.sendNonza = sendNonza;
      this.getConnectionSettings = getConnectionSettings;
      this.resetStreamParser = resetStreamParser;
      log = Logger(toString());
    }