disconnect method
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;
}