getWebSocketConnection method

Future<WebSocketConnection> getWebSocketConnection(
  1. String isolateId,
  2. String id
)

The getWebSocketConnection RPC retrieves a single profiled WebSocket connection.

Implementation

Future<WebSocketConnection> getWebSocketConnection(
  String isolateId,
  String id,
) async {
  assert(await isWebSocketProfilingAvailable(isolateId));
  return _callHelper(
    'ext.dart.io.getWebSocketConnection',
    isolateId,
    args: {'id': id},
  );
}