Saving now works over insecure networks.

This commit is contained in:
2025-03-17 21:57:57 -05:00
parent aa42df4a0e
commit da34ccfa0c
4 changed files with 43 additions and 8 deletions

View File

@@ -28,7 +28,8 @@ type ReceiveEmulatorMessage = (
{ message: 'ready' } |
{ message: 'save_state' } |
{ message: 'load_state' } |
{ message: 'save', data:string }
{ message: 'save', data:string } |
{ message: 'error', error:string }
);
export type EmulatorProps = {
@@ -94,6 +95,9 @@ export const Emulator:React.FC<EmulatorProps> = props => {
save(msg.data).catch(console.error);
break;
case 'error':
console.error('Emulator error:', msg.error);
case 'start':
case 'ready':
case 'load_state':