sendImage method
Implementation
void sendImage(Uint8List bytes, String type, {Map<String, dynamic>? meta}) {
if (!isConnected) {
onLog?.call('❌ Cannot send image: socket not connected');
return;
}
_socket!.emit('tryon-image', {
'buffer': bytes,
'type': type,
'meta': meta ?? {'type': 'CAPTURE'},
});
onLog?.call('📤 Image sent');
}