hunk.code_window:   -> WSServerEnv
     -> WS.HasuraServerApp m
   --   -- ^ aka generalized 'WS.ServerApp'
   createWSServerApp env authMode serverEnv = \ !ipAddress !pendingConn ->
     WS.createServerApp (_wseServer serverEnv) handlers ipAddress pendingConn
     where
  
hunk.labels: keep keep keep replace keep keep
hunk.after_edit: createWSServerApp env authMode serverMetrics serverEnv = \ !ipAddress !pendingConn ->
  
hunk.file_path: server/src-lib/Hasura/GraphQL/Transport/WebSocket.hs
hunk.type: replace
file: #!/usr/bin/env node
  require('./server.babel'); // babel registration (runtime transpilation for node)
  const path = require('path');
  
  const rootDir = path.resolve(__dirname, '..');
  /**
   * Define isomorphic constants.
   */
  global.__CLIENT__ = false;
  global.__SERVER__ = true;
  global.__DISABLE_SSR__ = false; // <----- DISABLES SERVER SIDE RENDERING FOR ERROR DEBUGGING
  global.__DEVELOPMENT__ = process.env.NODE_ENV !== 'production';
  
  if (__DEVELOPMENT__) {
    if (
      !require('piping')({
        //Fork the process and supervise the child for hot-reloading code
        hook: true,
        ignore: /(\/\.|~$|\.json|\.scss$)/i,
      })
    ) {
      return; //The parent process ends, and child process continues from below
    }
  }
  
  const WebpackIsomorphicTools = require('webpack-isomorphic-tools');
  global.webpackIsomorphicTools = new WebpackIsomorphicTools(
    require('../webpack/webpack-isomorphic-tools')
  ).server(rootDir, () => {
    require('../src/server');
  });
  
  require('../src/server');
  