Sha256: 7a0955eb267480b6842a395189b88d7fc32225b8930b270da0ea9708a7065552
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
# frozen_string_literal: true Tamashii::Server.config do |config| config.connection_class = Tamashii::Manager::Client config.pubsub_class = Tamashii::Manager::Subscription end module Tamashii module Manager # :nodoc: class Server < Tamashii::Server::Base def initialize super setup_heartbeat_timer end def call(env) super end # NOTE: Move into Tamashii::Server maybe better def setup_heartbeat_timer @heartbeat_timer = @event_loop.timer(Config.heartbeat_interval) do @event_loop.post { Client.accepted_clients.values.map(&:beat) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tamashii-manager-0.2.4 | lib/tamashii/manager/server.rb |
tamashii-manager-0.2.3 | lib/tamashii/manager/server.rb |
tamashii-manager-0.2.2 | lib/tamashii/manager/server.rb |