def handle_dispatched_message(reactor, data)
      log_debug "#{self.class} trying to dispatch message  #{data.inspect}"
      message = reactor.parse_json_data(data)
      final_data = message.present? && message.is_a?(Hash) ? message.to_json : data.to_json
      reactor.websocket << final_data
    end
def handle_dispatched_message(reactor, data)
      log_debug "#{self.class} trying to dispatch message  #{data.inspect}"
      message = reactor.parse_json_data(data)
      final_data = message.present? && message.is_a?(Hash) ? message.to_json : data.to_json
      reactor.websocket << final_data
    end
If the message can be parsed into a Hash it will respond to the reactor's websocket connection with the same message in JSON format
 otherwise will try send the message how it is and escaped into JSON format

 @param [CelluloidPubsub::Reactor] reactor The  reactor that received an unhandled message
 @param [Object] data The message that the reactor could not handle

 @return [void]

 @api public