ConnectionConfiguration constructor
ConnectionConfiguration({
- ClientVersionCodeSupported? clientVersionCodeSupported,
- int millisecondsToDisconnectClientAfterWithoutClientPing = 12 * 1000,
- int intervalInMsClientPing = 1 * 1000,
- int intervalInMsClientSendSameMessage = 5 * 1000,
- int intervalInMsServerSendSameMessage = 5 * 1000,
- bool isFromServer = false,
- int reconnectClientAfterMillisecondsWithoutServerPong = 6 * 1000,
- int requestTimeoutInMs = 7 * 1000,
- int waitForAuthenticationTimeoutInMs = 4 * 1000,
- 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();
}