var deps = [];
var mod = function() {
  /**
   * @description Methods related to SocketIO.
   */
  var Module = {
    /**
     * @description Invoke this helper on the server once it's ready -- it has
     *   attached its (message) observer. The client will be notified of the server's
     *   readiness, and asked to reply about its own readiness.
     * @param {object} socket
     * @param {function} callback
     * @param {number} [DEFAULT: 500] Milliseconds between requests for client reply.
     */
    syncWithClient: function(socket, callback, timeout) {
      var clientReady = false;

      socket.on('ClientReady', function() {
        clientReady = true;
      });

      var requestClientReply = function() {
        if (clientReady) {
          return; // Break cycle.
        }

        socket.emit('ServerReady');

        // Send the event again soon.
        setTimeout(requestClientReply, timeout || 500);
      };

      // Start the poll.
      requestClientReply();
    }
  };

  return Module;
};

define(deps, mod);

@@ -1,28 +1,14 @@
-var deps = %5B%5D;%0Avar mod =
+define(%5B%5D,
  fun
@@ -976,16 +976,436 @@
 );%0A    %7D
+,%0A%0A    /**%0A     * @description Invoke this helper on the client once it's ready -- it has%0A     *   attached its (message) observer. The server will be notified of the client's%0A     *   readiness.%0A     * @param %7Bobject%7D socket%0A     * @param %7Bfunction%7D callback%0A     */%0A    syncWithServer: function(socket, callback) %7B%0A      socket.on('ServerReady', _.once(function() %7B%0A        socket.emit('ClientReady');%0A      %7D));%0A    %7D
 %0A  %7D;%0A%0A 
@@ -1425,26 +1425,7 @@
 e;%0A%7D
-;%0A%0Adefine(deps, mod
 );%0A

ADD syncWithServer to shared socket helper