connect method

Future<WipConnection> connect({
  1. Function? onError,
})

Connect to the debug connection for this tab and return a WipConnection.

On errors from this stream, the onError handler is called with the error object and possibly a stack trace. The onError callback must be of type void Function(Object error) or void Function(Object error, StackTrace).

Implementation

Future<WipConnection> connect({Function? onError}) {
  return WipConnection.connect(webSocketDebuggerUrl, onError: onError);
}