toMap method
Diagnostics only, and deliberately without the secret.
This ends up in logs and error reports. The session name is useful there; the credential that admits a peer to it is not.
Implementation
@override
Map<String, dynamic> toMap() => {
'type': 'websocket',
'hubUri': hubUri.toString(),
'session': credentials.session,
'connectTimeoutMs': connectTimeout.inMilliseconds,
'maxFrameBytes': maxFrameBytes,
};