lib/metacosm/simulation.rb in metacosm-0.2.12 vs lib/metacosm/simulation.rb in metacosm-0.2.13
- old
+ new
@@ -80,14 +80,9 @@
if block_given?
@on_event_callback = blk
end
end
- # TODO lift this stuff from socius
- # def push_commands_to(channel:)
- # @command_push_channel = channel
- # end
-
def subscribe_for_commands(channel:)
p [ :subscribe_to_command_channel, channel: channel ]
redis = Redis.new
begin
redis.subscribe(channel) do |on|