Module: Loco::WsConnectionChecker
- Defined in:
- lib/loco/ws_connection_checker.rb
Class Method Summary collapse
Class Method Details
.call(identifier, skip: nil) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/loco/ws_connection_checker.rb', line 7 def call(identifier, skip: nil) WsConnectionStorage.current.members(identifier).each do |uuid| next if uuid == skip next if WsConnectionStorage.current.get(uuid) == 'ok' WsConnectionManager.new(identifier, identifier: true).del(uuid, skip_checker: true) end end |