Method: EasyUpnp::EventClient#resubscribe

Defined in:
lib/easy_upnp/events/event_client.rb

#resubscribe(sid, timeout: 300) ⇒ Object



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/easy_upnp/events/event_client.rb', line 36

def resubscribe(sid, timeout: 300)
  req = ResubscribeRequest.new(
    @events_endpoint,
    sid,
    timeout
  )

  response = do_request(req)

  SubscribeResponse.new(response)
end