clients: use "watch" endpoint, not "get"

This commit is contained in:
Brian Warner 2015-11-23 16:50:54 -08:00
parent 2318c94169
commit 1d6c3d1f96
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class Channel:
raise Timeout
queryargs = urlencode([("appid", self._appid),
("channelid", self._channelid)])
f = EventSourceFollower(self._relay_url+"get?%s" % queryargs,
f = EventSourceFollower(self._relay_url+"watch?%s" % queryargs,
remaining)
# we loop here until the connection is lost, or we see the
# message we want

View File

@ -140,7 +140,7 @@ class Channel:
# TODO: use agent=self._agent
queryargs = urlencode([("appid", self._appid),
("channelid", self._channelid)])
es = ReconnectingEventSource(self._relay_url+"get?%s" % queryargs,
es = ReconnectingEventSource(self._relay_url+"watch?%s" % queryargs,
_handle)
es.startService() # TODO: .setServiceParent(self)
es.activate()