Skip to content

Commit

Permalink
learn some networking dude
Browse files Browse the repository at this point in the history
  • Loading branch information
Josep M. Bach committed Aug 29, 2011
1 parent 8ba8fc4 commit a9f187e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/domodoro/server.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,9 @@
module Domodoro module Domodoro
class Server < EM::Connection class Server < EM::Connection
attr_reader :channel, :sid attr_reader :channel


class << self class << self
def start(host='127.0.0.1', port='9111') def start(host='0.0.0.0', port='9111')
puts "#{Time.now} - Domodoro serving at #{host}:#{port}" puts "#{Time.now} - Domodoro serving at #{host}:#{port}"
EM.run do EM.run do
channel = Channel.new channel = Channel.new
Expand Down

0 comments on commit a9f187e

Please sign in to comment.