<commit_before>return unless Caboose.command is 'server'

io = require 'socket.io'
_ = require 'underscore'

Caboose.app.after 'boot', ->
  Caboose.app.io = io.listen(Caboose.app.raw_http)

  Caboose.app.rooms = {
    sf: Caboose.app.io.of('/sf')
    nyc: Caboose.app.io.of('/nyc')
  }<commit_msg>Make socket.io listen on the tenderloin heroku domain<commit_after>return unless Caboose.command is 'server'

io = require 'socket.io'
_ = require 'underscore'

Caboose.app.after 'boot', ->
  Caboose.app.io = io.listen(Caboose.app.raw_http, 'tenderloin-sf.herokuapp.com')

  Caboose.app.rooms = {
    sf: Caboose.app.io.of('/sf')
    nyc: Caboose.app.io.of('/nyc')
  }
{'fraction_non_alphanumeric': 0.16390977443609023, 'fraction_numerical': 0.0, 'mean_word_length': 3.79136690647482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4874685', 'n_tokens_mistral': 265, 'n_tokens_neox': 269, 'n_words': 46}