class AFMotion::Rocket::HeaderWrapper

Synchronize headers between clients

Public Class Methods

new(source) click to toggle source
# File lib/afmotion-rocket/client_patch.rb, line 32
def initialize(source)
  @source = WeakRef.new(source)
end

Public Instance Methods

[](key) click to toggle source
# File lib/afmotion-rocket/client_patch.rb, line 36
def [](key)
  @source.headers_without_wrapper[key]
end
[]=(key, value) click to toggle source
# File lib/afmotion-rocket/client_patch.rb, line 40
def []=(key, value)
  @source.headers_without_wrapper[key] = value
  @source.rocket_client.requestSerializer.headers[key] = value
end