old_contents: import { Sockets } from './sockets';
  import { keyboard } from './keyboard';
  import { joystick } from './joystick';
  import { Motors } from './motors';
  import { Manipulator } from './manipulator';
  import { telemetry } from './telemetry';
  import { Stream } from './stream'
  import { System } from './system';
  
  const core = (actions) => {
      const sockets = new Sockets(actions);
  
      actions.motors = new Motors(sockets);
  
      actions.stream = new Stream();
      window.onbeforeunload = () => actions.stream.stop();
  
      actions.manipulator.m = new Manipulator(sockets);
      actions.system = new System(sockets);
      actions.joystick = joystick;
  
  
      console.log('[core][actions]:', actions);
  
      keyboard(actions.motors);
  
      // telemetry(actions, sockets);
  }
  
  export default core;
  
new_contents: import { Sockets } from './sockets';
  import { keyboard } from './keyboard';
  import { joystick } from './joystick';
  import { Motors } from './motors';
  import { Manipulator } from './manipulator';
  import { telemetry } from './telemetry';
  import { Stream } from './stream';
  import { System } from './system';
  
  const core = (actions) => {
      const sockets = new Sockets(actions);
  
      actions.motors = new Motors(sockets);
  
      actions.stream = new Stream();
      window.onbeforeunload = () => actions.stream.stop();
  
      actions.manipulator.m = new Manipulator(sockets);
      actions.system = new System(sockets);
      actions.joystick = joystick;
  
  
      console.log('[core][actions]:', actions);
  
      keyboard(actions.motors);
  
      telemetry(actions, sockets);
  };
  
  export default core;
  
subject: format core/index