onRequestList method

void onRequestList(
  1. HttpRequest request
)

Implementation

void onRequestList(HttpRequest request) {
  request.response.headers.clear();
  String pageId = hashCode.toString();
  String entryURL = '$address:$port/devtools/page/$pageId';
  _writeJSONObject(request, [
    {
      'faviconUrl': FAVICON,
      'devtoolsFrontendUrl': '$INSPECTOR_URL?ws=$entryURL',
      'title': 'Kraken App',
      'id': pageId,
      'type': 'page',
      'url': bundleURL,
      'webSocketDebuggerUrl': 'ws://$entryURL'
    }
  ]);
}