Sha256: 6d9e64a97ff19234a9d33c10f535dcc232f1713d01a6c9946df365a2e3653dea
Contents?: true
Size: 905 Bytes
Versions: 40
Compression:
Stored size: 905 Bytes
Contents
# frozen_string_literal: true module RubyRabbitmqJanus module Tools module Replaces # Format message request with good data to HASH format for Session # request. # Manage session and plugin. # # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv> class Session < Replace private def replace_element_classic super replace_session if request.key?('session_id') replace_plugin if request.key?('plugin') end def replace_session request['session_id'] = type.convert('session_id', opts) rescue => exception ::Log.warn "Error session replace : #{exception}" end def replace_plugin request['plugin'] = type.convert('plugin') rescue => exception ::Log.warn "Error plugin replace : #{exception}" end end end end end
Version data entries
40 entries across 40 versions & 1 rubygems