ConnectionConfiguration constructor

ConnectionConfiguration({
  1. ClientVersionCodeSupported? clientVersionCodeSupported,
  2. int millisecondsToDisconnectClientAfterWithoutClientPing = 12 * 1000,
  3. int intervalInMsClientPing = 1 * 1000,
  4. int intervalInMsClientSendSameMessage = 5 * 1000,
  5. int intervalInMsServerSendSameMessage = 5 * 1000,
  6. bool isFromServer = false,
  7. int reconnectClientAfterMillisecondsWithoutServerPong = 6 * 1000,
  8. int requestTimeoutInMs = 7 * 1000,
  9. int waitForAuthenticationTimeoutInMs = 4 * 1000,
  10. String serverVersion = 'none',
})

Implementation

ConnectionConfiguration({
  ClientVersionCodeSupported? clientVersionCodeSupported,
  this.millisecondsToDisconnectClientAfterWithoutClientPing = 12 * 1000,
  this.intervalInMsClientPing = 1 * 1000,
  this.intervalInMsClientSendSameMessage = 5 * 1000,
  this.intervalInMsServerSendSameMessage = 5 * 1000,
  this.isFromServer = false,
  this.reconnectClientAfterMillisecondsWithoutServerPong = 6 * 1000,
  this.requestTimeoutInMs = 7 * 1000,
  this.waitForAuthenticationTimeoutInMs = 4 * 1000,
  this.serverVersion = 'none',
}){
  this.clientVersionCodeSupported = clientVersionCodeSupported ?? ClientVersionCodeSupported();
}