Sha256: 8c096711207911e964fe82b5638cbaa07f790a081455061edc1863cd8f72cf09
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 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 # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tamashii-manager-0.2.0 | lib/tamashii/manager/server.rb |