NostrEOSE.fromRelayMessage constructor

NostrEOSE.fromRelayMessage(
  1. String message
)

Implementation

factory NostrEOSE.fromRelayMessage(String message) {
  final decoded = jsonDecode(message) as List;

  return NostrEOSE(
    subscriptionId: decoded.last,
  );
}