fromRelayMessage static method

NostrRequestEoseCommand fromRelayMessage(
  1. String dataFromRelay
)

Implementation

static NostrRequestEoseCommand fromRelayMessage(String dataFromRelay) {
  assert(canBeDeserialized(dataFromRelay));

  final decoded = jsonDecode(dataFromRelay) as List;

  return NostrRequestEoseCommand(
    subscriptionId: decoded[1] as String,
  );
}