WebSocketSubscription<T> constructor

WebSocketSubscription<T>(
  1. int id, {
  2. required int exchangeId,
  3. 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();