Sha256: afe861d449527f847b2e0d48aacddca575a20826ddfaca6514e7213f97a3924d

Contents?: true

Size: 484 Bytes

Versions: 1

Compression:

Stored size: 484 Bytes

Contents

$:.unshift(File.dirname(__FILE__)) # add this directory to load path
$:.unshift(Dir.pwd) # add current working directory for loading extensions

require 'bundler'
Bundler.setup
require 'em-websocket'
require 'json'

require 'mad_chatter/server'
require 'mad_chatter/actions'

EventMachine.run do

  MadChatter::Actions.init
  
  port = ENV['PORT'] || 8100
  
  puts "Starting WebSocket server on port #{port}."
  
  server = MadChatter::Server.new(:port => port)
  server.start
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mad_chatter-0.0.7 lib/mad_chatter.rb