Skip to content

Commit

Permalink
Rename private method
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Naiman committed Feb 24, 2022
1 parent b5e8e83 commit d2d176b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rasti/web/broadcaster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def initialize(app, headers={})
@mutex = Mutex.new
@subscriptions = {}

send_keep_alive_message
start_sending_keep_alive_messages
end

def call(env)
Expand Down Expand Up @@ -90,7 +90,7 @@ def send_message(event_source, data:, event: nil, id: nil)
event_source.send data, event: event, id: id
end

def send_keep_alive_message
def start_sending_keep_alive_messages
if self.class.keep_alive_interval
Timer.every self.class.keep_alive_interval do
subscriptions.each do |subscription_id, event_source|
Expand Down

0 comments on commit d2d176b

Please sign in to comment.