BrowserUserLink({NodeProvider nodeProvider, bool isRequester: true, bool isResponder: true, String wsUpdateUri, bool enableAck: false, String format })

Source

BrowserUserLink({NodeProvider nodeProvider,
bool isRequester: true,
bool isResponder: true,
this.wsUpdateUri,
this.enableAck: false,
String format})
    : requester = isRequester ? new Requester() : null,
      responder = (isResponder && nodeProvider != null)
          ? new Responder(nodeProvider)
          : null {
  if (wsUpdateUri.startsWith("http")) {
    wsUpdateUri = "ws${wsUpdateUri.substring(4)}";
  }

  if (format != null) {
    this.format = format;
  }

  if (window.location.hash.contains("dsa_json")) {
    this.format = "json";
  }
}