generateID property
A custom WebSocket implementation to use instead of the one provided by the global scope. Mostly useful for when using the client outside of the browser environment. A custom ID generator for identifying subscriptions.
The default generates a v4 UUID to be used as the ID using Math
as the random number generator. Supply your own generator
in case you need more uniqueness.
Reference: https://gist.github.com/jed/982883
@default generateUUID
Implementation
// final Object? webSocketImpl;
/// A custom ID generator for identifying subscriptions.
///
/// The default generates a v4 UUID to be used as the ID using `Math`
/// as the random number generator. Supply your own generator
/// in case you need more uniqueness.
///
/// Reference: https://gist.github.com/jed/982883
///
/// @default [generateUUID]
final String Function() generateID;