NostrRelay constructor

const NostrRelay({
  1. required WebSocketChannel socket,
  2. required String url,
})

A representation of a relay, it contains the WebSocket connection to the relay and the url of the relay.

Implementation

const NostrRelay({
  required this.socket,
  required this.url,
});