<commit_before>import {Meteor} from 'meteor/meteor';
import {Messages} from '/lib/collections';
import {check} from 'meteor/check';

export default function () {
  Meteor.methods({
    'message.create'(text) {
      const userId = Meteor.userId();
      check(userId, String);
      check(text, String);
      const createdAt = new Date();
      const message = { creator: userId, text, createdAt, received: true };
      Meteor._sleepForMs(3500);
      Messages.insert(message);
    },

  });
}
<commit_msg>commented server timeout for the demo<commit_after>import {Meteor} from 'meteor/meteor';
import {Messages} from '/lib/collections';
import {check} from 'meteor/check';

export default function () {
  Meteor.methods({
    'message.create'(text) {
      const userId = Meteor.userId();
      check(userId, String);
      check(text, String);
      const createdAt = new Date();
      const message = { creator: userId, text, createdAt, received: true };
      // DEMO
      // Meteor._sleepForMs(3500);
      Messages.insert(message);
    },

  });
}

{'fraction_non_alphanumeric': 0.14380321665089876, 'fraction_numerical': 0.007568590350047304, 'mean_word_length': 3.283400809716599, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6116084', 'n_tokens_mistral': 339, 'n_tokens_neox': 324, 'n_words': 82}