getVersion method

Future<VersionResponse> getVersion()

Gets data about the current plugin and RPC version.

  • Complexity Rating: 1/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<VersionResponse> getVersion() async {
  final response = await obsWebSocket.sendRequest(Request('GetVersion'));

  return VersionResponse.fromJson(response!.responseData!);
}