subscribeToOracleUpdates method

Future<void> subscribeToOracleUpdates({
  1. dynamic onUpdate(
    1. OracleUcoPrice?
    )?,
})

Subscribe to oracle updates

Implementation

Future<void> subscribeToOracleUpdates({
  Function(OracleUcoPrice?)? onUpdate,
}) async {
  await _connect(
    phoenixHttpEndpoint,
    websocketEndpoint,
  );

  _listenOracleUpdates(
    onUpdate!,
  );
}