WebSocketSubscription<T> constructor
WebSocketSubscription<T> (
- int id, {
- required int exchangeId,
- required StreamSubscription<
T> streamSubscription,
Stores a web socket stream subscription.
Use the on method to attach handlers to the stream.
Implementation
WebSocketSubscription(
this.id, {
required this.exchangeId,
required this.streamSubscription,
}): createdAt = DateTime.now().toUtc();