lib/caldera/websocket.rb
def handle_close(event)
      LOGGER.warn { "Received a close frame: (#{event.reason}, #{event.code})" }
      @dead = true
      @thread.kill
      emit(:close, { reason: event.reason, code: event.code })
    end
# Fired when the WS connection has sent a close frame.
Fired when the WS connection has sent a close frame.
Fired when the WS connection has sent a close frame .
def handle_close(event)
      LOGGER.warn { "Received a close frame: (#{event.reason}, #{event.code})" }
      @dead = true
      @thread.kill
      emit(:close, { reason: event.reason, code: event.code })
    end
def handle_close ( event ) LOGGER . warn { "Received a close frame: (#{event.reason}, #{event.code})" } @dead = true @thread . kill emit ( :close , { reason : event . reason , code : event . code } ) end
Fired when the WS connection has sent a close frame.
Fired when the WS connection has sent a close frame .
event