Module: Backport::Server::Connectable
Overview
A mixin for Backport servers that communicate with clients.
Connectable servers check clients for incoming data on each tick.
Instance Method Summary collapse
Instance Method Details
#clients ⇒ Array<Client>
19 20 21 |
# File 'lib/backport/server/connectable.rb', line 19 def clients @clients ||= [] end |
#starting ⇒ void
This method returns an undefined value.
9 10 11 |
# File 'lib/backport/server/connectable.rb', line 9 def starting clients.map(&:run) end |
#stopping ⇒ void
This method returns an undefined value.
14 15 16 |
# File 'lib/backport/server/connectable.rb', line 14 def stopping clients.map(&:stop) end |