setVolume method
Sets the volume of the audio playback.
client: The WebSocket client to which the volume command will be sent.
volume: The desired volume level (0.0 to 1.0).
Implementation
Future<void> setVolume(WebSocket client, double volume) async {
client.add('setVolume:$volume'); // Send the volume command to the client
}