disconnect method

Future<bool> disconnect(
  1. int connectionId
)

Closes the connection identified by connectionId in the worker.

Returns true if disconnect succeeded, false otherwise.

Implementation

Future<bool> disconnect(int connectionId) async {
  final r = await _sendRequest<BoolResponse>(
    DisconnectRequest(_nextRequestId(), connectionId),
  );
  return r.value;
}