Sha256: 2d789d7978c20339d967c22e653208bf7843b87193b887055c583022c32713f7

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

module MadChatter
  class Server
    
    def initialize(config)
      @config = config
      @server = initialize_server
    end
    
    def initialize_server
      return MadChatter::Servers::EventMachineWebSocket.new(@config['websocket_port'], self)
    end
  
    def start
      EM.run do
        puts "Starting Mad Chatter Web Socket server on port #{@config['websocket_port']}."
        @server.start
      end
    end
    
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mad_chatter-0.3.4 lib/mad_chatter/server.rb
mad_chatter-0.3.3 lib/mad_chatter/server.rb