20 21 22 23 24 25 26
# File 'lib/websocket_manager.rb', line 20 def open if closed? @state = :opening connect end @state end