message: Refactor WebSocket error handling
diff: import { connectToDevTools as connectToDevToolsInternal } from 'react-devtools-core';
  export const connectToDevTools = () => {
  - // Try construction is used to avoid crashing if devtools is not launched
  - try {
  + let connectionFailed = false;
  + const connection = new WebSocket('ws://localhost:8097');
  +
  connectToDevToolsInternal({
  - isAppActive: () => true,
  - host: 'localhost',
  - port: 8097,
  - resolveRNStyle: null
  + // prevents from multiple retries
  + isAppActive: () => !connectionFailed,
  + resolveRNStyle: null,
  + websocket: connection
  });
  - } catch (e) {}
  +
  + connection.onerror = () => {
  + console.warn('React DevTools is not running. Please run React DevTools or remove `connectToDevTools` call');
  + connectionFailed = true;
  + };
  };
  