RelayJit constructor

RelayJit({
  1. required String url,
  2. required dynamic onMessage(
    1. Nip01Event,
    2. RequestState
    ),
})

Implementation

RelayJit({
  required String url,
  required this.onMessage,
}) : super(url) {
  String? cleanUrl = cleanRelayUrl(url);
  if (cleanUrl == null) {
    throw Exception("invalid url $url => $cleanUrl");
  }
  super.url = cleanUrl;
}