lib/caldera/websocket.rb
# Fired when a message frame has been received
Fired when a message frame has been received
Fired when a message frame has been received
def handle_message(event)
      LOGGER.info("Received message: #{event.data.inspect}")
      parsed = JSON.parse(event.data)
      emit(parsed['op'], parsed)
    end
def handle_message ( event ) LOGGER . info ( "Received message: #{event.data.inspect}" ) parsed = JSON . parse ( event . data ) emit ( parsed [ 'op' ] , parsed ) end
Fired when a message frame has been received
Fired when a message frame has been received
event